Class DLSyntaxParser
java.lang.Object
org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
Lexical state.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
End of File.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.org.semanticweb.owlapi.dlsyntax.parser.Token
Next token.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.static final int
RegularExpression Id.org.semanticweb.owlapi.dlsyntax.parser.Token
Current token.org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager
Generated Token Manager.static final String[]
Literal token values.static final int
RegularExpression Id. -
Constructor Summary
ConstructorsConstructorDescriptionDLSyntaxParser
(String dsl) Constructor.DLSyntaxParser
(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm) Constructor with generated Token Manager.DLSyntaxParser
(org.semanticweb.owlapi.dlsyntax.parser.Provider stream) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal OWLClassExpression
And()
final void
Disable tracing.final void
Enable tracing.org.semanticweb.owlapi.dlsyntax.parser.ParseException
Generate ParseException.getIRIFromId
(String qname) final org.semanticweb.owlapi.dlsyntax.parser.Token
Get the next Token.final org.semanticweb.owlapi.dlsyntax.parser.Token
getToken
(int index) Get the specific Token.final OWLClassExpression
final OWLClassExpression
final OWLClassExpression
final OWLClassExpression
Or()
final OWLClassExpression
final OWLAxiom
final OWLClassExpression
final OWLAxiom
final OWLAxiom
final OWLClassExpression
final OWLClass
final OWLDataRange
final OWLAxiom
final OWLClassExpression
final OWLClassExpression
final OWLAxiom
final IRI
parseId()
final OWLAxiom
final OWLIndividual
final OWLLiteral
final OWLClassExpression
final OWLClassExpression
final OWLAxiom
final OWLAxiom
final OWLAxiom
final OWLClassExpression
final OWLAxiom
final OWLClassExpression
void
void
ReInit
(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm) Reinitialise.void
ReInit
(org.semanticweb.owlapi.dlsyntax.parser.Provider stream) Reinitialise.void
void
setOWLDataFactory
(OWLDataFactory factory) void
setPrefixMapping
(String prefix, String namespace) final boolean
Trace enabled.
-
Field Details
-
token_source
public org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager token_sourceGenerated Token Manager. -
token
public org.semanticweb.owlapi.dlsyntax.parser.Token tokenCurrent token. -
jj_nt
public org.semanticweb.owlapi.dlsyntax.parser.Token jj_ntNext token. -
EOF
static final int EOFEnd of File.- See Also:
-
SUBCLASSOF
static final int SUBCLASSOFRegularExpression Id.- See Also:
-
EQUIVALENTTO
static final int EQUIVALENTTORegularExpression Id.- See Also:
-
NEQ
static final int NEQRegularExpression Id.- See Also:
-
COMPOSE
static final int COMPOSERegularExpression Id.- See Also:
-
DOT
static final int DOTRegularExpression Id.- See Also:
-
INVERSE
static final int INVERSERegularExpression Id.- See Also:
-
OPENPAR
static final int OPENPARRegularExpression Id.- See Also:
-
CLOSEPAR
static final int CLOSEPARRegularExpression Id.- See Also:
-
OPENSQPAR
static final int OPENSQPARRegularExpression Id.- See Also:
-
CLOSESQPAR
static final int CLOSESQPARRegularExpression Id.- See Also:
-
OPENBRACE
static final int OPENBRACERegularExpression Id.- See Also:
-
CLOSEBRACE
static final int CLOSEBRACERegularExpression Id.- See Also:
-
COLON
static final int COLONRegularExpression Id.- See Also:
-
AND
static final int ANDRegularExpression Id.- See Also:
-
OR
static final int ORRegularExpression Id.- See Also:
-
NOT
static final int NOTRegularExpression Id.- See Also:
-
SOME
static final int SOMERegularExpression Id.- See Also:
-
ALL
static final int ALLRegularExpression Id.- See Also:
-
MIN
static final int MINRegularExpression Id.- See Also:
-
MAX
static final int MAXRegularExpression Id.- See Also:
-
EXACT
static final int EXACTRegularExpression Id.- See Also:
-
IN
static final int INRegularExpression Id.- See Also:
-
TRANSITIVEROLES
static final int TRANSITIVEROLESRegularExpression Id.- See Also:
-
INT
static final int INTRegularExpression Id.- See Also:
-
DOUBLE
static final int DOUBLERegularExpression Id.- See Also:
-
ID
static final int IDRegularExpression Id.- See Also:
-
DEFAULT
static final int DEFAULTLexical state.- See Also:
-
tokenImage
Literal token values.
-
-
Constructor Details
-
DLSyntaxParser
public DLSyntaxParser(org.semanticweb.owlapi.dlsyntax.parser.Provider stream) Constructor. -
DLSyntaxParser
public DLSyntaxParser(String dsl) throws org.semanticweb.owlapi.dlsyntax.parser.ParseException, org.semanticweb.owlapi.dlsyntax.parser.TokenMgrException Constructor.- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
org.semanticweb.owlapi.dlsyntax.parser.TokenMgrException
-
DLSyntaxParser
public DLSyntaxParser(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm) Constructor with generated Token Manager.
-
-
Method Details
-
setOWLDataFactory
-
setPrefixMapping
-
setDefaultNamespace
-
getIRI
-
getIRIFromId
-
parseDescription
public final OWLClassExpression parseDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseAxioms
public final Set<OWLAxiom> parseAxioms() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseAxiom
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseIndividualAxiom
public final OWLAxiom parseIndividualAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseDifferentIndividualsAxiom
public final OWLAxiom parseDifferentIndividualsAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseObjectPropertyAssertion
public final OWLAxiom parseObjectPropertyAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseDataPropertyAssertion
public final OWLAxiom parseDataPropertyAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseSameIndividual
public final OWLAxiom parseSameIndividual() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseClassAssertion
public final OWLAxiom parseClassAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseClassAxiom
public final OWLAxiom parseClassAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parsePropertyChain
public final OWLAxiom parsePropertyChain() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parsePropertyAxiom
public final OWLAxiom parsePropertyAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseClassDescription
public final OWLClassExpression parseClassDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
Or
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
And
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
NonNaryBooleanDescription
public final OWLClassExpression NonNaryBooleanDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseObjectPropertyId
public final OWLObjectPropertyExpression parseObjectPropertyId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseDataPropertyId
public final OWLDataPropertyExpression parseDataPropertyId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseRestriction
public final OWLClassExpression parseRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseSomeRestriction
public final OWLClassExpression parseSomeRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseDataSomeRestriction
public final OWLClassExpression parseDataSomeRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseAllRestriction
public final OWLClassExpression parseAllRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseCardinalityRestriction
public final OWLClassExpression parseCardinalityRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseIndividualId
public final OWLIndividual parseIndividualId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseObjectComplementOf
public final OWLClassExpression parseObjectComplementOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseObjectOneOf
public final OWLClassExpression parseObjectOneOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseDataOneOf
public final OWLDataRange parseDataOneOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
NamedClassOrNestedDescription
public final OWLClassExpression NamedClassOrNestedDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseClassId
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
NestedClassDescription
public final OWLClassExpression NestedClassDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseLiteral
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
parseId
- Throws:
org.semanticweb.owlapi.dlsyntax.parser.ParseException
-
ReInit
-
ReInit
public void ReInit(org.semanticweb.owlapi.dlsyntax.parser.Provider stream) Reinitialise. -
ReInit
public void ReInit(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm) Reinitialise. -
getNextToken
public final org.semanticweb.owlapi.dlsyntax.parser.Token getNextToken()Get the next Token. -
getToken
public final org.semanticweb.owlapi.dlsyntax.parser.Token getToken(int index) Get the specific Token. -
generateParseException
public org.semanticweb.owlapi.dlsyntax.parser.ParseException generateParseException()Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-