public class ManchesterOWLSyntaxEditorParser extends Object implements ManchesterOWLSyntaxParser
| Type | Property and Description |
|---|---|
protected org.semanticweb.owlapi.model.OWLAnnotationProperty |
parseAnnotation |
protected org.semanticweb.owlapi.model.OWLDataProperty |
parseData |
| Modifier and Type | Class and Description |
|---|---|
protected class |
ManchesterOWLSyntaxEditorParser.ExceptionBuilder |
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
annotationPropertyNames |
protected Set<String> |
classNames |
protected org.semanticweb.owlapi.model.OWLDataFactory |
dataFactory |
protected Set<String> |
dataPropertyNames |
protected Set<String> |
dataTypeNames |
protected Set<String> |
individualNames |
protected Set<String> |
objectPropertyNames |
protected org.semanticweb.owlapi.util.DefaultPrefixManager |
pm |
protected Set<ManchesterOWLSyntax> |
potentialKeywords |
| Constructor and Description |
|---|
ManchesterOWLSyntaxEditorParser(org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
String s) |
ManchesterOWLSyntaxEditorParser(org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration,
org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
String s) |
| Modifier and Type | Method and Description |
|---|---|
protected org.semanticweb.owlapi.model.IRI |
getIRI(String name) |
protected ManchesterOWLSyntaxTokenizer.Token |
getLastToken() |
protected ManchesterOWLSyntaxTokenizer |
getTokenizer(String s) |
protected List<String> |
getTokenSequence() |
protected org.semanticweb.owlapi.model.OWLAnnotation |
parseAnnotation() |
protected org.semanticweb.owlapi.model.OWLAnnotationProperty |
parseAnnotationProperty() |
org.semanticweb.owlapi.model.OWLAxiom |
parseAxiom()
Parsing "Inline" Axioms.
|
org.semanticweb.owlapi.model.OWLClassAxiom |
parseClassAxiom() |
org.semanticweb.owlapi.model.OWLClassExpression |
parseClassExpression()
Parses an OWL class expression that is represented in Manchester OWL
Syntax.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
parseClassExpressionList() |
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
parseClassExpressionList(boolean ignored) |
Set<OntologyAxiomPair> |
parseClassFrameEOF() |
org.semanticweb.owlapi.model.OWLLiteral |
parseConstant()
Deprecated.
|
protected org.semanticweb.owlapi.model.OWLDataProperty |
parseDataProperty() |
protected org.semanticweb.owlapi.model.OWLDataPropertyCharacteristicAxiom |
parseDataPropertyCharacteristic(org.semanticweb.owlapi.model.OWLDataPropertyExpression prop) |
org.semanticweb.owlapi.model.OWLDataRange |
parseDataRange() |
protected org.semanticweb.owlapi.model.OWLPropertyAssertionAxiom<?,?> |
parseFact(org.semanticweb.owlapi.model.OWLIndividual ind) |
Set<OntologyAxiomPair> |
parseFrames() |
protected org.semanticweb.owlapi.model.OWLIndividual |
parseIndividual() |
protected Set<org.semanticweb.owlapi.model.OWLIndividual> |
parseIndividualList() |
protected org.semanticweb.owlapi.model.OWLClassExpression |
parseIntersection() |
protected org.semanticweb.owlapi.model.IRI |
parseIRI() |
org.semanticweb.owlapi.model.OWLLiteral |
parseLiteral(org.semanticweb.owlapi.model.OWLDatatype datatype) |
List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
parseObjectPropertyChain() |
protected org.semanticweb.owlapi.model.OWLObjectPropertyCharacteristicAxiom |
parseObjectPropertyCharacteristic(org.semanticweb.owlapi.model.OWLObjectPropertyExpression prop) |
protected org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
parseObjectPropertyExpression(boolean allowUndeclared) |
Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
parseObjectPropertyList() |
ManchesterOWLSyntaxOntologyFormat |
parseOntology(org.semanticweb.owlapi.model.OWLOntology ont) |
Set<org.semanticweb.owlapi.model.OWLPropertyExpression<?,?>> |
parsePropertyList() |
List<OntologyAxiomPair> |
parseRuleFrame() |
protected org.semanticweb.owlapi.model.OWLClassExpression |
parseUnion() |
org.semanticweb.owlapi.model.IRI |
parseVariable() |
void |
setDefaultOntology(org.semanticweb.owlapi.model.OWLOntology defaultOntology) |
void |
setOWLEntityChecker(OWLEntityChecker owlEntityChecker) |
void |
setOWLOntologyChecker(OWLOntologyChecker owlOntologyChecker) |
protected org.semanticweb.owlapi.model.OWLDataProperty parseDataProperty
protected org.semanticweb.owlapi.model.OWLAnnotationProperty parseAnnotationProperty
protected org.semanticweb.owlapi.model.OWLDataFactory dataFactory
protected org.semanticweb.owlapi.util.DefaultPrefixManager pm
protected Set<ManchesterOWLSyntax> potentialKeywords
public ManchesterOWLSyntaxEditorParser(org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
String s)
dataFactory - dataFactorys - spublic ManchesterOWLSyntaxEditorParser(org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration,
org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
String s)
configuration - configurationdataFactory - dataFactorys - sprotected ManchesterOWLSyntaxTokenizer getTokenizer(String s)
public void setOWLEntityChecker(OWLEntityChecker owlEntityChecker)
setOWLEntityChecker in interface ManchesterOWLSyntaxParserowlEntityChecker - owlEntityCheckerpublic void setOWLOntologyChecker(OWLOntologyChecker owlOntologyChecker)
setOWLOntologyChecker in interface ManchesterOWLSyntaxParserowlOntologyChecker - owlOntologyCheckerprotected ManchesterOWLSyntaxTokenizer.Token getLastToken()
public org.semanticweb.owlapi.model.OWLClassExpression parseClassExpression()
throws ParserException
ManchesterOWLSyntaxParserparseClassExpression in interface ManchesterOWLSyntaxParserParserException - If a class expression could not be parsed.protected org.semanticweb.owlapi.model.OWLClassExpression parseIntersection()
protected org.semanticweb.owlapi.model.OWLClassExpression parseUnion()
protected org.semanticweb.owlapi.model.OWLObjectPropertyExpression parseObjectPropertyExpression(boolean allowUndeclared)
public org.semanticweb.owlapi.model.OWLDataRange parseDataRange()
parseDataRange in interface ManchesterOWLSyntaxParser@Deprecated public org.semanticweb.owlapi.model.OWLLiteral parseConstant()
parseConstant in interface ManchesterOWLSyntaxParserpublic org.semanticweb.owlapi.model.OWLLiteral parseLiteral(org.semanticweb.owlapi.model.OWLDatatype datatype)
parseLiteral in interface ManchesterOWLSyntaxParserdatatype - datatype to use, if one exists in the context. If null, the
datatype will be decided by the literal itself.protected org.semanticweb.owlapi.model.IRI getIRI(String name)
public Set<OntologyAxiomPair> parseFrames() throws ParserException
ParserException - parsing errorprotected org.semanticweb.owlapi.model.OWLAnnotation parseAnnotation()
public Set<OntologyAxiomPair> parseClassFrameEOF() throws ParserException
parseClassFrameEOF in interface ManchesterOWLSyntaxParserParserException - parsing errorpublic void setDefaultOntology(org.semanticweb.owlapi.model.OWLOntology defaultOntology)
defaultOntology - defaultOntologyprotected org.semanticweb.owlapi.model.OWLPropertyAssertionAxiom<?,?> parseFact(org.semanticweb.owlapi.model.OWLIndividual ind)
public List<OntologyAxiomPair> parseRuleFrame()
parseRuleFrame in interface ManchesterOWLSyntaxParserpublic org.semanticweb.owlapi.model.IRI parseVariable()
throws ParserException
parseVariable in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedprotected org.semanticweb.owlapi.model.OWLObjectPropertyCharacteristicAxiom parseObjectPropertyCharacteristic(org.semanticweb.owlapi.model.OWLObjectPropertyExpression prop)
protected org.semanticweb.owlapi.model.OWLDataPropertyCharacteristicAxiom parseDataPropertyCharacteristic(org.semanticweb.owlapi.model.OWLDataPropertyExpression prop)
public Set<org.semanticweb.owlapi.model.OWLClassExpression> parseClassExpressionList(boolean ignored)
parseClassExpressionList in interface ManchesterOWLSyntaxParserignored - this parameter is ignoredpublic Set<org.semanticweb.owlapi.model.OWLClassExpression> parseClassExpressionList()
parseClassExpressionList in interface ManchesterOWLSyntaxParserpublic Set<org.semanticweb.owlapi.model.OWLPropertyExpression<?,?>> parsePropertyList()
parsePropertyList in interface ManchesterOWLSyntaxParserpublic Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> parseObjectPropertyList() throws ParserException
parseObjectPropertyList in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedprotected Set<org.semanticweb.owlapi.model.OWLIndividual> parseIndividualList()
public List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> parseObjectPropertyChain()
parseObjectPropertyChain in interface ManchesterOWLSyntaxParserprotected org.semanticweb.owlapi.model.OWLIndividual parseIndividual()
protected org.semanticweb.owlapi.model.OWLDataProperty parseDataProperty()
protected org.semanticweb.owlapi.model.OWLAnnotationProperty parseAnnotationProperty()
protected org.semanticweb.owlapi.model.IRI parseIRI()
public ManchesterOWLSyntaxOntologyFormat parseOntology(org.semanticweb.owlapi.model.OWLOntology ont) throws ParserException, org.semanticweb.owlapi.model.UnloadableImportException
parseOntology in interface ManchesterOWLSyntaxParseront - ontParserException - parsing errororg.semanticweb.owlapi.model.UnloadableImportException - import errorpublic org.semanticweb.owlapi.model.OWLClassAxiom parseClassAxiom()
throws ParserException
parseClassAxiom in interface ManchesterOWLSyntaxParserParserException - if a parser exception is raisedpublic org.semanticweb.owlapi.model.OWLAxiom parseAxiom()
throws ParserException
ManchesterOWLSyntaxParserparseAxiom in interface ManchesterOWLSyntaxParserParserException - parsing errorCopyright © 2014 The University of Manchester. All Rights Reserved.