public class KRSSParser extends Object implements KRSSParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
KRSSParserTokenManager |
token_source
Generated Token Manager.
|
ALL, AND, ATLEAST, ATMOST, CLOSEPAR, COMMENT_START, DEFAULT, DEFINECONCEPT, DEFINEPRIMITIVECONCEPT, DEFINEPRIMITIVEROLE, DISTINCT, ENDABOX, ENDTBOX, ENUM, EOF, EQUAL, EXACTLY, IN_COMMENT, IN_IRI, IN_STRING_LITERAL, INSTANCE, INT, IRI_END, IRI_START, NAME, NONE, NOT, OPENPAR, OR, PRIMITIVECONCEPT, RANGE, RELATED, SOME, STRING_LITERAL_START, STRINGLITERAL, SUBROLE, tokenImage, TRANSITIVE
Constructor and Description |
---|
KRSSParser(InputStream stream)
Constructor with InputStream.
|
KRSSParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding.
|
KRSSParser(KRSSParserTokenManager tm)
Constructor with generated Token Manager.
|
KRSSParser(Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
OWLAxiom |
ABoxStatement()
A box statement.
|
OWLClassExpression |
All()
All.
|
OWLClassExpression |
And()
And.
|
OWLClassExpression |
AtLeast()
At least.
|
OWLClassExpression |
AtMost()
At most.
|
OWLClassExpression |
ConceptExpression()
Concept expression.
|
OWLClassExpression |
ConceptName()
Concept name.
|
Set<OWLClassExpression> |
ConceptSet()
Concept set.
|
OWLAxiom |
DefineConcept()
Define concept.
|
OWLAxiom |
DefinePrimitiveConcept()
Define primitive concept.
|
OWLAxiom |
DefinePrimitiveRole()
Define primitive role.
|
void |
disable_tracing()
Disable tracing.
|
OWLAxiom |
Distinct()
Distinct.
|
void |
enable_tracing()
Enable tracing.
|
OWLAxiom |
Equal()
Equal.
|
OWLClassExpression |
Exactly()
Exactly.
|
ParseException |
generateParseException()
Generate ParseException.
|
IRI |
getIRI(String _s)
Gets the iri.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
OWLIndividual |
IndividualName()
Individual name.
|
OWLAxiom |
Instance()
Instance.
|
int |
Integer()
Integer.
|
IRI |
Name()
Name.
|
OWLClassExpression |
Not()
Not.
|
OWLClassExpression |
Or()
Or.
|
void |
parse()
Parses the.
|
OWLAxiom |
Range()
Range.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(KRSSParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
OWLAxiom |
Related()
Related.
|
OWLObjectProperty |
RoleName()
Role name.
|
void |
setIgnoreAnnotationsAndDeclarations(boolean b)
Sets the ignore annotations and declarations.
|
void |
setOntology(OWLOntology ontology,
OWLDataFactory dataFactory)
Sets the ontology.
|
OWLClassExpression |
Some()
Some.
|
OWLAxiom |
TBoxStatement()
T box statement.
|
OWLAxiom |
Transitive()
Transitive.
|
public KRSSParserTokenManager token_source
public Token token
public Token jj_nt
public KRSSParser(InputStream stream)
stream
- the streampublic KRSSParser(InputStream stream, String encoding)
stream
- the streamencoding
- the encodingpublic KRSSParser(Reader stream)
stream
- the streampublic KRSSParser(KRSSParserTokenManager tm)
tm
- the tmpublic void setOntology(OWLOntology ontology, OWLDataFactory dataFactory)
ontology
- the ontologydataFactory
- the data factorypublic void setIgnoreAnnotationsAndDeclarations(boolean b)
b
- the new ignore annotations and declarationspublic final void parse() throws ParseException, KRSSOWLParserException
ParseException
- the parse exceptionKRSSOWLParserException
- the kRSSOWL parser exceptionpublic final OWLAxiom TBoxStatement() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom DefinePrimitiveConcept() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom DefineConcept() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom DefinePrimitiveRole() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Transitive() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Range() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression ConceptExpression() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression ConceptName() throws ParseException
ParseException
- the parse exceptionpublic final Set<OWLClassExpression> ConceptSet() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression And() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression Or() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression Not() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression All() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression Some() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression AtLeast() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression AtMost() throws ParseException
ParseException
- the parse exceptionpublic final OWLClassExpression Exactly() throws ParseException
ParseException
- the parse exceptionpublic final OWLObjectProperty RoleName() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom ABoxStatement() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Instance() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Related() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Equal() throws ParseException
ParseException
- the parse exceptionpublic final OWLAxiom Distinct() throws ParseException
ParseException
- the parse exceptionpublic final OWLIndividual IndividualName() throws ParseException
ParseException
- the parse exceptionpublic final IRI Name() throws ParseException
ParseException
- the parse exceptionpublic final int Integer() 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(KRSSParserTokenManager 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 © 2017 The University of Manchester. All Rights Reserved.