Package org.obolibrary.macro
Class ManchesterSyntaxTool
java.lang.Object
org.obolibrary.macro.ManchesterSyntaxTool
wrapper for parsing Manchester Syntax.
- Author:
- heiko
-
Constructor Summary
ConstructorsConstructorDescriptionManchesterSyntaxTool
(OWLOntology inputOntology) Create a new parser instance for the given ontology.ManchesterSyntaxTool
(OWLOntology inputOntology, Collection<OWLOntology> auxiliaryOntologies) Create a new parser instance for the given ontologies. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Call this method to dispose the internal data structures.Translate theIRI
into the short form as expected by the parser.Translate theOWLEntity
identifier into the short form as expected by the parser.parseManchesterExpression
(String expression) Parse a class expression in Manchester syntax.parseManchesterExpressionFrames
(String expression) Parse frame expressions in Manchester syntax.
-
Constructor Details
-
ManchesterSyntaxTool
Create a new parser instance for the given ontology. By default, this parser will also try to resolveOWLObject
instances via their identifier or rdfs:label.- Parameters:
inputOntology
- input ontology
-
ManchesterSyntaxTool
public ManchesterSyntaxTool(OWLOntology inputOntology, @Nullable Collection<OWLOntology> auxiliaryOntologies) Create a new parser instance for the given ontologies. By default, this parser will also try to resolveOWLObject
instances via their identifier or rdfs:label.- Parameters:
inputOntology
- input ontologyauxiliaryOntologies
- set of additional ontologies or null
-
-
Method Details
-
parseManchesterExpressionFrames
Parse frame expressions in Manchester syntax.- Parameters:
expression
- expression- Returns:
- set of
OntologyAxiomPair
- Throws:
ParserException
- parser exception
-
parseManchesterExpression
Parse a class expression in Manchester syntax.- Parameters:
expression
- expression- Returns:
OWLClassExpression
- Throws:
ParserException
- parser exception
-
getId
Translate theIRI
into the short form as expected by the parser.- Parameters:
iri
- iri- Returns:
- short form
-
getId
Translate theOWLEntity
identifier into the short form as expected by the parser.- Parameters:
entity
- entity- Returns:
- short form
-
dispose
public void dispose()Call this method to dispose the internal data structures. This will remove also the listeners registered with the ontology manager.
-