public class KBParser extends Object implements KBParserConstants
| Modifier and Type | Field and Description |
|---|---|
static String |
internalNamespace |
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
KBParserTokenManager |
token_source
Generated Token Manager.
|
ALL, AND, BOTTOM, COMMAND_END, DEFAULT, DOUBLE, EOF, EXISTS, FORMAL_COMMENT, GE, ID, LE, MULTI_LINE_COMMENT, NOT, NUMBER, OR, SINGLE_LINE_COMMENT, STRING, tokenImage, TOP| Constructor and Description |
|---|
KBParser(InputStream stream)
Constructor with InputStream.
|
KBParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
KBParser(KBParserTokenManager tm)
Constructor with generated Token Manager.
|
KBParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.OWLClassAssertionAxiom |
ABoxConcept() |
org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom |
ABoxRole() |
void |
All() |
void |
And() |
org.semanticweb.owlapi.model.OWLClass |
AtomicConcept() |
void |
Bottom() |
org.semanticweb.owlapi.model.OWLClassExpression |
Concept() |
org.semanticweb.owlapi.model.OWLDataProperty |
DatatypeProperty() |
org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom |
DatatypePropertyDomainAxiom() |
org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom |
DatatypePropertyRangeAxiom() |
void |
disable_tracing()
Disable tracing.
|
double |
Double() |
void |
enable_tracing()
Enable tracing.
|
void |
Exists() |
org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom |
Functional() |
void |
GE() |
ParseException |
generateParseException()
Generate ParseException.
|
static String |
getInternalURI(String name) |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
String |
Id() |
org.semanticweb.owlapi.model.OWLIndividual |
Individual() |
int |
Integer() |
org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom |
Inverse() |
org.semanticweb.owlapi.model.OWLOntology |
KB() |
void |
LE() |
void |
Not() |
org.semanticweb.owlapi.model.OWLObjectProperty |
ObjectProperty() |
org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom |
ObjectPropertyDomainAxiom() |
org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom |
ObjectPropertyRangeAxiom() |
void |
Or() |
static org.semanticweb.owlapi.model.OWLClassExpression |
parseConcept(String string) |
static org.semanticweb.owlapi.model.OWLClassExpression |
parseConcept(String string,
String namespace) |
static org.semanticweb.owlapi.model.OWLOntology |
parseKBFile(File file) |
static org.semanticweb.owlapi.model.OWLOntology |
parseKBFile(String content) |
static org.semanticweb.owlapi.model.OWLOntology |
parseKBFile(URL url) |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(KBParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
String |
String() |
org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom |
Subrole() |
org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom |
Symmetric() |
org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom |
TBoxEquiv() |
org.semanticweb.owlapi.model.OWLSubClassOfAxiom |
TBoxSub() |
void |
Top() |
org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom |
Transitive() |
public static String internalNamespace
public KBParserTokenManager token_source
public KBParser(InputStream stream)
public KBParser(InputStream stream, String encoding)
public KBParser(KBParserTokenManager tm)
public static String getInternalURI(String name)
public static org.semanticweb.owlapi.model.OWLClassExpression parseConcept(String string) throws ParseException
ParseExceptionpublic static org.semanticweb.owlapi.model.OWLClassExpression parseConcept(String string, String namespace) throws ParseException
ParseExceptionpublic static org.semanticweb.owlapi.model.OWLOntology parseKBFile(String content) throws ParseException, org.semanticweb.owlapi.model.OWLOntologyCreationException
ParseExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationExceptionpublic static org.semanticweb.owlapi.model.OWLOntology parseKBFile(URL url) throws IOException, ParseException, org.semanticweb.owlapi.model.OWLOntologyCreationException
IOExceptionParseExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationExceptionpublic static org.semanticweb.owlapi.model.OWLOntology parseKBFile(File file) throws FileNotFoundException, ParseException, org.semanticweb.owlapi.model.OWLOntologyCreationException
FileNotFoundExceptionParseExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationExceptionpublic final org.semanticweb.owlapi.model.OWLOntology KB() throws ParseException, org.semanticweb.owlapi.model.OWLOntologyCreationException
ParseExceptionorg.semanticweb.owlapi.model.OWLOntologyCreationExceptionpublic final org.semanticweb.owlapi.model.OWLClassAssertionAxiom ABoxConcept() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom ABoxRole() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom Transitive() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom Functional() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom Symmetric() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom Inverse() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom Subrole() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLEquivalentClassesAxiom TBoxEquiv() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLSubClassOfAxiom TBoxSub() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom ObjectPropertyDomainAxiom() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLDataPropertyDomainAxiom DatatypePropertyDomainAxiom() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom ObjectPropertyRangeAxiom() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom DatatypePropertyRangeAxiom() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLClassExpression Concept() throws ParseException
ParseExceptionpublic final void Or() throws ParseException
ParseExceptionpublic final void And() throws ParseException
ParseExceptionpublic final void Top() throws ParseException
ParseExceptionpublic final void Bottom() throws ParseException
ParseExceptionpublic final void Exists() throws ParseException
ParseExceptionpublic final void All() throws ParseException
ParseExceptionpublic final void Not() throws ParseException
ParseExceptionpublic final void GE() throws ParseException
ParseExceptionpublic final void LE() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLClass AtomicConcept() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLDataProperty DatatypeProperty() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLObjectProperty ObjectProperty() throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.OWLIndividual Individual() throws ParseException
ParseExceptionpublic final String Id() throws ParseException
ParseExceptionpublic final double Double() throws ParseException
ParseExceptionpublic final int Integer() throws ParseException
ParseExceptionpublic final String String() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(KBParserTokenManager tm)
public final Token getNextToken()
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann