uk.ac.man.cs.img.owl.test
Class OWLTestExtracter
java.lang.Object
|
+--uk.ac.man.cs.img.owl.test.OWLTestExtracter
- All Implemented Interfaces:
- edu.unika.aifb.rdf.api.syntax.RDFConsumer
- public class OWLTestExtracter
- extends Object
- implements edu.unika.aifb.rdf.api.syntax.RDFConsumer
Utility that takes a collection of zipped files, looks for any
manifests in them, and then tries to extract information about the
tests described.
|
Method Summary |
void |
addModelAttribte(String arg0,
String arg1)
|
void |
endModel()
|
Map |
getTestLevels()
|
Set |
getTests()
|
Map |
getTestTypes()
|
void |
includeModel(String arg0,
String arg1)
|
void |
logicalURI(String arg0)
|
static void |
main(String[] args)
|
void |
parseTests(URI uri)
Returns a collection of documents, indexed according to their level. |
static void |
printTest(OWLTest test,
boolean html)
|
static String |
shorten(String str)
|
void |
startModel(String arg0)
|
void |
statementWithLiteralValue(String subject,
String predicate,
String object,
String parseType,
String language)
Called when a statement with literal value is added to the model. |
void |
statementWithResourceValue(String subj,
String pred,
String obj)
|
static void |
usage()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OWLTestExtracter
public OWLTestExtracter()
getTests
public Set getTests()
getTestTypes
public Map getTestTypes()
getTestLevels
public Map getTestLevels()
parseTests
public void parseTests(URI uri)
throws Exception
- Returns a collection of documents, indexed according to their level.
Exception
startModel
public void startModel(String arg0)
throws SAXException
- Specified by:
startModel in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException- See Also:
RDFConsumer.startModel(String)
endModel
public void endModel()
throws SAXException
- Specified by:
endModel in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException- See Also:
RDFConsumer.endModel()
statementWithResourceValue
public void statementWithResourceValue(String subj,
String pred,
String obj)
throws SAXException
- Specified by:
statementWithResourceValue in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException- See Also:
RDFConsumer.statementWithResourceValue(String, String, String)
statementWithLiteralValue
public void statementWithLiteralValue(String subject,
String predicate,
String object,
String parseType,
String language)
throws SAXException
- Called when a statement with literal value is added to the model.
- Specified by:
statementWithLiteralValue in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
- Parameters:
subject - URI of the subject resourcepredicate - URI of the predicate resourceobject - literal object valueparseType - the parse type of the literallanguage - the language
SAXException
logicalURI
public void logicalURI(String arg0)
throws SAXException
- Specified by:
logicalURI in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException
includeModel
public void includeModel(String arg0,
String arg1)
throws SAXException
- Specified by:
includeModel in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException
addModelAttribte
public void addModelAttribte(String arg0,
String arg1)
throws SAXException
- Specified by:
addModelAttribte in interface edu.unika.aifb.rdf.api.syntax.RDFConsumer
SAXException
usage
public static void usage()
main
public static void main(String[] args)
shorten
public static String shorten(String str)
printTest
public static void printTest(OWLTest test,
boolean html)
WonderWeb