public class DLSyntaxParser extends Object implements DLSyntaxParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
DLSyntaxParserTokenManager |
token_source
Generated Token Manager.
|
ALL, AND, CLOSEBRACE, CLOSEPAR, CLOSESQPAR, COLON, COMPOSE, DEFAULT, DOT, DOUBLE, EOF, EQUIVALENTTO, EXACT, ID, IN, INT, INVERSE, MAX, MIN, NEQ, NOT, OPENBRACE, OPENPAR, OPENSQPAR, OR, SOME, SUBCLASSOF, tokenImage, TRANSITIVEROLES| Constructor and Description |
|---|
DLSyntaxParser(DLSyntaxParserTokenManager tm)
Constructor with generated Token Manager.
|
DLSyntaxParser(InputStream stream)
Constructor with InputStream.
|
DLSyntaxParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding.
|
DLSyntaxParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.OWLClassExpression |
And()
And.
|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
org.semanticweb.owlapi.model.IRI |
getIRI(String val)
Gets the iri.
|
org.semanticweb.owlapi.model.IRI |
getIRIFromId(String qname)
Gets the iRI from id.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
org.semanticweb.owlapi.model.OWLClassExpression |
NamedClassOrNestedDescription()
Named class or nested description.
|
org.semanticweb.owlapi.model.OWLClassExpression |
NestedClassDescription()
Nested class description.
|
org.semanticweb.owlapi.model.OWLClassExpression |
NonNaryBooleanDescription()
Non nary boolean description.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Or()
Or.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseAllRestriction()
Parses the all restriction.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseAxiom()
Parses the axiom.
|
Set<org.semanticweb.owlapi.model.OWLAxiom> |
parseAxioms()
Parses the axioms.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseCardinalityRestriction()
Parses the cardinality restriction.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseClassAssertion()
Parses the class assertion.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseClassAxiom()
Parses the class axiom.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseClassDescription()
Parses the class description.
|
org.semanticweb.owlapi.model.OWLClass |
parseClassId()
Parses the class id.
|
org.semanticweb.owlapi.model.OWLDataRange |
parseDataOneOf()
Parses the data one of.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseDataPropertyAssertion()
Parses the data property assertion.
|
org.semanticweb.owlapi.model.OWLDataPropertyExpression |
parseDataPropertyId()
Parses the data property id.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseDataSomeRestriction()
Parses the data some restriction.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseDescription()
Parses the description.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseDifferentIndividualsAxiom()
Parses the different individuals axiom.
|
org.semanticweb.owlapi.model.IRI |
parseId()
Parses the id.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseIndividualAxiom()
Parses the individual axiom.
|
org.semanticweb.owlapi.model.OWLIndividual |
parseIndividualId()
Parses the individual id.
|
org.semanticweb.owlapi.model.OWLLiteral |
parseLiteral()
Parses the literal.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseObjectComplementOf()
Parses the object complement of.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseObjectOneOf()
Parses the object one of.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseObjectPropertyAssertion()
Parses the object property assertion.
|
org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
parseObjectPropertyId()
Parses the object property id.
|
org.semanticweb.owlapi.model.OWLAxiom |
parsePropertyAxiom()
Parses the property axiom.
|
org.semanticweb.owlapi.model.OWLAxiom |
parsePropertyChain()
Parses the property chain.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseRestriction()
Parses the restriction.
|
org.semanticweb.owlapi.model.OWLAxiom |
parseSameIndividual()
Parses the same individual.
|
org.semanticweb.owlapi.model.OWLClassExpression |
parseSomeRestriction()
Parses the some restriction.
|
void |
ReInit(DLSyntaxParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
setDefaultNamespace(String ns)
Sets the default namespace.
|
void |
setOWLDataFactory(org.semanticweb.owlapi.model.OWLDataFactory factory)
Sets the oWL data factory.
|
void |
setPrefixMapping(String prefix,
String namespace)
Sets the prefix mapping.
|
public DLSyntaxParserTokenManager token_source
public Token token
public Token jj_nt
public DLSyntaxParser(InputStream stream)
stream - the streampublic DLSyntaxParser(InputStream stream, String encoding)
stream - the streamencoding - the encodingpublic DLSyntaxParser(Reader stream)
stream - the streampublic DLSyntaxParser(DLSyntaxParserTokenManager tm)
tm - the tmpublic void setOWLDataFactory(org.semanticweb.owlapi.model.OWLDataFactory factory)
factory - the new oWL data factorypublic void setPrefixMapping(String prefix, String namespace)
prefix - the prefixnamespace - the namespacepublic void setDefaultNamespace(String ns)
ns - the new default namespacepublic org.semanticweb.owlapi.model.IRI getIRI(String val)
val - the valpublic org.semanticweb.owlapi.model.IRI getIRIFromId(String qname)
qname - the qnamepublic final org.semanticweb.owlapi.model.OWLClassExpression parseDescription()
throws ParseException
ParseException - the parse exceptionpublic final Set<org.semanticweb.owlapi.model.OWLAxiom> parseAxioms() throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseAxiom()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseIndividualAxiom()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseDifferentIndividualsAxiom()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseObjectPropertyAssertion()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseDataPropertyAssertion()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseSameIndividual()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseClassAssertion()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parseClassAxiom()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parsePropertyChain()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom parsePropertyAxiom()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseClassDescription()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Or()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression And()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression NonNaryBooleanDescription()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLObjectPropertyExpression parseObjectPropertyId()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLDataPropertyExpression parseDataPropertyId()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseRestriction()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseSomeRestriction()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseDataSomeRestriction()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseAllRestriction()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseCardinalityRestriction()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLIndividual parseIndividualId()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseObjectComplementOf()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression parseObjectOneOf()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLDataRange parseDataOneOf()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression NamedClassOrNestedDescription()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClass parseClassId()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression NestedClassDescription()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLLiteral parseLiteral()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.IRI parseId()
throws ParseException
ParseException - the parse exceptionpublic void ReInit(InputStream stream)
stream - the streampublic void ReInit(InputStream stream, String encoding)
stream - the streamencoding - the encodingpublic void ReInit(Reader stream)
stream - the streampublic void ReInit(DLSyntaxParserTokenManager tm)
tm - the tmpublic final Token getNextToken()
public final Token getToken(int index)
index - the indexpublic ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2014 The University of Manchester. All Rights Reserved.