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 |
|---|---|
org.semanticweb.owlapi.model.OWLAxiom |
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.
|
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.
|
org.semanticweb.owlapi.model.OWLAxiom |
DefineConcept()
Define concept.
|
org.semanticweb.owlapi.model.OWLAxiom |
DefinePrimitiveConcept()
Define primitive concept.
|
org.semanticweb.owlapi.model.OWLAxiom |
DefinePrimitiveRole()
Define primitive role.
|
void |
disable_tracing()
Disable tracing.
|
org.semanticweb.owlapi.model.OWLAxiom |
Distinct()
Distinct.
|
void |
enable_tracing()
Enable tracing.
|
org.semanticweb.owlapi.model.OWLAxiom |
Equal()
Equal.
|
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.
|
org.semanticweb.owlapi.model.OWLIndividual |
IndividualName()
Individual name.
|
org.semanticweb.owlapi.model.OWLAxiom |
Instance()
Instance.
|
int |
Integer()
Integer.
|
org.semanticweb.owlapi.model.IRI |
Name()
Name.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Not()
Not.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Or()
Or.
|
void |
parse()
Parses the.
|
org.semanticweb.owlapi.model.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.
|
org.semanticweb.owlapi.model.OWLAxiom |
Related()
Related.
|
org.semanticweb.owlapi.model.OWLObjectProperty |
RoleName()
Role name.
|
void |
setIgnoreAnnotationsAndDeclarations(boolean b)
Sets the ignore annotations and declarations.
|
void |
setOntology(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.model.OWLDataFactory dataFactory)
Sets the ontology.
|
org.semanticweb.owlapi.model.OWLClassExpression |
Some()
Some.
|
org.semanticweb.owlapi.model.OWLAxiom |
TBoxStatement()
T box statement.
|
org.semanticweb.owlapi.model.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(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 KRSSOWLParserException
ax - the axKRSSOWLParserException - the kRSSOWL parser exceptionpublic org.semanticweb.owlapi.model.IRI getIRI(String _s)
_s - the stringpublic 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 org.semanticweb.owlapi.model.OWLAxiom TBoxStatement()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom DefinePrimitiveConcept()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom DefineConcept()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom DefinePrimitiveRole()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Transitive()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Range()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression ConceptExpression()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression ConceptName()
throws ParseException
ParseException - the parse exceptionpublic final Set<org.semanticweb.owlapi.model.OWLClassExpression> ConceptSet() 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 Or()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Not()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression All()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Some()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression AtLeast()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression AtMost()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Exactly()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLObjectProperty RoleName()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom ABoxStatement()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Instance()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Related()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Equal()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLAxiom Distinct()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.OWLIndividual IndividualName()
throws ParseException
ParseException - the parse exceptionpublic final org.semanticweb.owlapi.model.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 © 2014 The University of Manchester. All Rights Reserved.