public class KRSS2Parser extends Object implements KRSS2ParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
KRSS2ParserTokenManager |
token_source
Generated Token Manager.
|
ALL, AND, ATLEAST, ATMOST, BOTTOM, CLOSEPAR, COMMENT_START, COMPOSE, DEFAULT, DEFINECONCEPT, DEFINEINDIVIDUAL, DEFINEPRIMITIVECONCEPT, DEFINEPRIMITIVEROLE, DEFINEROLE, DISJOINT, DISJOINTROLES, DISTINCT, DOMAIN_ATTRIBUTE, DPOINT, ENDABOX, ENDTBOX, ENUM, EOF, EQUAL, EQUIVALENT, ERROR, EXACTLY, IMPLIES, IMPLIESROLE, IN_COMMENT, IN_IRI, INSTANCE, INT, INV, INVERSE, INVERSE_ATTRIBUTE, IRI_END, IRI_START, LEFT_IDENTITY_ATTRIBUTE, NAME, NCCHAR_FULL, NCCHAR1, NIL, NOT, ONEOF, OPENPAR, OR, PARENT, PARENTS, RANGE, RANGE_ATTRIBUTE, REFLEXIVE_ATTRIBUTE, RELATED, RIGHT_IDENTITY_ATTRIBUTE, ROLE_INCLUSION, ROLESEQUIVALENT, SOME, SUBROLE, SYMMETRIC_ATTRIBUTE, tokenImage, TOP, TRANSITIVE, TRANSITIVE_ATTRIBUTE, TRUE| Constructor and Description |
|---|
KRSS2Parser(InputStream stream)
Constructor with InputStream.
|
KRSS2Parser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding.
|
KRSS2Parser(KRSS2ParserTokenManager tm)
Constructor with generated Token Manager.
|
KRSS2Parser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ABoxStatement()
A box statement.
|
protected void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom ax)
Adds the axiom.
|
org.semanticweb.owlapi.model.OWLClassExpression |
All()
All.
|
org.semanticweb.owlapi.model.OWLClassExpression |
And()
And.
|
org.semanticweb.owlapi.model.OWLClassExpression |
AtLeast()
At least.
|
org.semanticweb.owlapi.model.OWLClassExpression |
AtMost()
At most.
|
void |
ComplexRoleInclusion()
Complex role inclusion.
|
org.semanticweb.owlapi.model.OWLClassExpression |
ConceptExpression()
Concept expression.
|
org.semanticweb.owlapi.model.OWLClassExpression |
ConceptName()
Concept name.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
ConceptSet()
Concept set.
|
void |
DefineConcept()
Define concept.
|
void |
DefinePrimitiveConcept()
Define primitive concept.
|
void |
DefinePrimitiveRole()
Define primitive role.
|
void |
DefineRole()
Define role.
|
void |
disable_tracing()
Disable tracing.
|
void |
Disjoint()
Disjoint.
|
void |
DisjointRoles()
Disjoint roles.
|
void |
Distinct()
Distinct.
|
void |
DomainAttribute(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
Domain attribute.
|
void |
enable_tracing()
Enable tracing.
|
void |
Equal()
Equal.
|
void |
Equivalent()
Equivalent.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Exactly()
Exactly.
|
ParseException |
generateParseException()
Generate ParseException.
|
org.semanticweb.owlapi.model.IRI |
getIRI(String s)
Gets the iri.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
Implies()
Implies.
|
void |
ImpliesRole()
Implies role.
|
org.semanticweb.owlapi.model.OWLIndividual |
IndividualName()
Individual name.
|
void |
Instance()
Instance.
|
int |
Integer()
Integer.
|
void |
InverseProperty(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
Inverse property.
|
void |
Inverses()
Inverses.
|
void |
LeftIdentity(org.semanticweb.owlapi.model.OWLObjectProperty r)
Left identity.
|
org.semanticweb.owlapi.model.IRI |
Name()
Name.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Not()
Not.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Or()
Or.
|
void |
Parent(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
Parent.
|
void |
Parents(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
Parents.
|
void |
parse()
Parses the.
|
boolean |
parseBoolean()
Parses the boolean.
|
List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
propertyChain()
Property chain.
|
void |
Range()
Range.
|
void |
RangeAttribute(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
Range attribute.
|
void |
ReflexiveAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
Reflexive attribute.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(KRSS2ParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
Related()
Related.
|
void |
RightIdentity(org.semanticweb.owlapi.model.OWLObjectProperty r)
Right identity.
|
org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
RoleExpression()
Role expression.
|
org.semanticweb.owlapi.model.OWLObjectProperty |
RoleName()
Role name.
|
Set<org.semanticweb.owlapi.model.OWLObjectProperty> |
RoleNameSet()
Role name set.
|
void |
RolesEquivalent()
Roles equivalent.
|
void |
setNameResolution(NameResolverStrategy nameResolution)
Sets the name resolution.
|
void |
setOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLDataFactory dataFactory)
Sets the ontology.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Some()
Some.
|
void |
SymmetricAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
Symmetric attribute.
|
void |
TBoxStatement()
T box statement.
|
void |
Transitive()
Transitive.
|
void |
TransitiveAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
Transitive attribute.
|
public KRSS2ParserTokenManager token_source
public Token token
public Token jj_nt
public KRSS2Parser(InputStream stream)
stream - the streampublic KRSS2Parser(InputStream stream, String encoding)
stream - the streamencoding - the encodingpublic KRSS2Parser(Reader stream)
stream - the streampublic KRSS2Parser(KRSS2ParserTokenManager tm)
tm - the tmpublic void setOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLDataFactory dataFactory)
ontology - the ontologydataFactory - the data factoryprotected void addAxiom(org.semanticweb.owlapi.model.OWLAxiom ax)
throws KRSS2OWLParserException
ax - the axKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic org.semanticweb.owlapi.model.IRI getIRI(String s) throws URISyntaxException
s - the sURISyntaxException - the uRI syntax exceptionpublic void setNameResolution(NameResolverStrategy nameResolution)
nameResolution - the new name resolutionpublic final void parse()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void TBoxStatement()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DefinePrimitiveConcept()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DefineConcept()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Disjoint()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Equivalent()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Implies()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DefineRole()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DefinePrimitiveRole()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void RightIdentity(org.semanticweb.owlapi.model.OWLObjectProperty r)
throws ParseException,
KRSS2OWLParserException
r - the rParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void LeftIdentity(org.semanticweb.owlapi.model.OWLObjectProperty r)
throws ParseException,
KRSS2OWLParserException
r - the rParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void InverseProperty(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
throws ParseException,
KRSS2OWLParserException
subProp - the sub propParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DomainAttribute(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
throws ParseException,
KRSS2OWLParserException
subProp - the sub propParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void RangeAttribute(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
throws ParseException,
KRSS2OWLParserException
subProp - the sub propParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void TransitiveAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
throws ParseException,
KRSS2OWLParserException
property - the propertyParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void SymmetricAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
throws ParseException,
KRSS2OWLParserException
property - the propertyParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void ReflexiveAttribute(org.semanticweb.owlapi.model.OWLObjectProperty property)
throws ParseException,
KRSS2OWLParserException
property - the propertyParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Parents(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
throws ParseException,
KRSS2OWLParserException
subProp - the sub propParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Parent(org.semanticweb.owlapi.model.OWLObjectProperty subProp)
throws ParseException,
KRSS2OWLParserException
subProp - the sub propParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void DisjointRoles()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void ImpliesRole()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Inverses()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void RolesEquivalent()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void ComplexRoleInclusion()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> propertyChain() throws ParseException, KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Transitive()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Range()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression ConceptExpression()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression ConceptName()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final Set<org.semanticweb.owlapi.model.OWLClassExpression> ConceptSet() throws ParseException, KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression And()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Or()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Not()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression All()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Some()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression AtLeast()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression AtMost()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Exactly()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLObjectProperty RoleName()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final Set<org.semanticweb.owlapi.model.OWLObjectProperty> RoleNameSet() throws ParseException, KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLObjectPropertyExpression RoleExpression()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void ABoxStatement()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Instance()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Related()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Equal()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final void Distinct()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final org.semanticweb.owlapi.model.OWLIndividual IndividualName()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final int Integer()
throws ParseException,
KRSS2OWLParserException
ParseException - the parse exceptionKRSS2OWLParserException - the kRS s2 owl parser exceptionpublic final boolean parseBoolean()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.IRI Name()
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(KRSS2ParserTokenManager 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.