Class ManchesterOWLSyntaxParserImpl
java.lang.Object
org.semanticweb.owlapi.manchestersyntax.parser.ManchesterOWLSyntaxParserImpl
- All Implemented Interfaces:
HasOntologyLoaderConfiguration
,ManchesterOWLSyntaxParser
A parser for the Manchester OWL Syntax. All properties must be defined before they are used. For
example, consider the restriction hasPart some Leg. The parser must know in advance whether or
not hasPart is an object property or a data property so that Leg gets parsed correctly. In a
tool, such as an editor, it is expected that hasPart will already exists as either a data
property or an object property. If a complete ontology is being parsed, it is expected that
hasPart will have been defined at the top of the file before it is used in any class expressions
or property assertions (e.g. ObjectProperty: hasPart)
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionManchesterOWLSyntaxParserImpl
(OntologyConfigurator configurationProvider, OWLDataFactory dataFactory) -
Method Summary
Modifier and TypeMethodDescriptionparseLiteral
(OWLDatatype datatype) parseOntology
(OWLOntology ont) void
setDefaultOntology
(OWLOntology defaultOntology) void
void
setOWLEntityChecker
(OWLEntityChecker owlEntityChecker) void
setOWLOntologyChecker
(OWLOntologyChecker owlOntologyChecker) void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.util.mansyntax.ManchesterOWLSyntaxParser
parseClassExpression
-
Constructor Details
-
ManchesterOWLSyntaxParserImpl
@Inject public ManchesterOWLSyntaxParserImpl(OntologyConfigurator configurationProvider, OWLDataFactory dataFactory) - Parameters:
configurationProvider
- configuration providerdataFactory
- dataFactory
-
-
Method Details
-
getPrefixManager
- Returns:
- the prefix manager used by this parser
-
getOntologyLoaderConfiguration
- Specified by:
getOntologyLoaderConfiguration
in interfaceHasOntologyLoaderConfiguration
-
setOntologyLoaderConfiguration
- Specified by:
setOntologyLoaderConfiguration
in interfaceHasOntologyLoaderConfiguration
-
setStringToParse
- Specified by:
setStringToParse
in interfaceManchesterOWLSyntaxParser
-
setOWLEntityChecker
- Specified by:
setOWLEntityChecker
in interfaceManchesterOWLSyntaxParser
-
setOWLOntologyChecker
- Specified by:
setOWLOntologyChecker
in interfaceManchesterOWLSyntaxParser
-
parseClassExpression
- Specified by:
parseClassExpression
in interfaceManchesterOWLSyntaxParser
-
parseDataRange
- Specified by:
parseDataRange
in interfaceManchesterOWLSyntaxParser
-
parseDataRangeList
- Specified by:
parseDataRangeList
in interfaceManchesterOWLSyntaxParser
-
parseLiteral
- Specified by:
parseLiteral
in interfaceManchesterOWLSyntaxParser
-
parseFrames
- Specified by:
parseFrames
in interfaceManchesterOWLSyntaxParser
-
parseDatatypeFrame
- Specified by:
parseDatatypeFrame
in interfaceManchesterOWLSyntaxParser
-
parseClassFrame
- Specified by:
parseClassFrame
in interfaceManchesterOWLSyntaxParser
-
parseClassFrameEOF
- Specified by:
parseClassFrameEOF
in interfaceManchesterOWLSyntaxParser
-
setDefaultOntology
- Specified by:
setDefaultOntology
in interfaceManchesterOWLSyntaxParser
-
parseObjectPropertyFrame
- Specified by:
parseObjectPropertyFrame
in interfaceManchesterOWLSyntaxParser
-
parseDataPropertyFrame
- Specified by:
parseDataPropertyFrame
in interfaceManchesterOWLSyntaxParser
-
parseAnnotationPropertyFrame
- Specified by:
parseAnnotationPropertyFrame
in interfaceManchesterOWLSyntaxParser
-
parseIndividualFrame
- Specified by:
parseIndividualFrame
in interfaceManchesterOWLSyntaxParser
-
parseValuePartitionFrame
- Specified by:
parseValuePartitionFrame
in interfaceManchesterOWLSyntaxParser
-
parseRuleFrame
- Specified by:
parseRuleFrame
in interfaceManchesterOWLSyntaxParser
-
parseVariable
- Specified by:
parseVariable
in interfaceManchesterOWLSyntaxParser
-
parseClassExpressionList
- Specified by:
parseClassExpressionList
in interfaceManchesterOWLSyntaxParser
-
parsePropertyList
- Specified by:
parsePropertyList
in interfaceManchesterOWLSyntaxParser
-
parseObjectPropertyList
- Specified by:
parseObjectPropertyList
in interfaceManchesterOWLSyntaxParser
-
parseDataPropertyList
- Specified by:
parseDataPropertyList
in interfaceManchesterOWLSyntaxParser
-
parseAnnotationPropertyList
- Specified by:
parseAnnotationPropertyList
in interfaceManchesterOWLSyntaxParser
-
parseIndividualList
- Specified by:
parseIndividualList
in interfaceManchesterOWLSyntaxParser
-
parseObjectPropertyChain
- Specified by:
parseObjectPropertyChain
in interfaceManchesterOWLSyntaxParser
-
parseOntology
- Specified by:
parseOntology
in interfaceManchesterOWLSyntaxParser
-
parseAxiom
- Specified by:
parseAxiom
in interfaceManchesterOWLSyntaxParser
-
parseClassAxiom
- Specified by:
parseClassAxiom
in interfaceManchesterOWLSyntaxParser
-