public class ManchesterSyntaxTool extends Object
Constructor and Description |
---|
ManchesterSyntaxTool(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.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Call this method to dispose the internal data structures.
|
String |
getId(IRI iri)
Translate the
IRI into the short form as expected by the parser. |
String |
getId(OWLEntity entity)
Translate the
OWLEntity identifier into the short form as expected by the parser. |
OWLClassExpression |
parseManchesterExpression(String expression)
Parse a class expression in Manchester syntax.
|
Set<OntologyAxiomPair> |
parseManchesterExpressionFrames(String expression)
Parse frame expressions in Manchester syntax.
|
public ManchesterSyntaxTool(OWLOntology inputOntology)
OWLObject
instances via their identifier or rdfs:label.inputOntology
- input ontologypublic ManchesterSyntaxTool(OWLOntology inputOntology, @Nullable Collection<OWLOntology> auxiliaryOntologies)
OWLObject
instances via their identifier or rdfs:label.inputOntology
- input ontologyauxiliaryOntologies
- set of additional ontologies or nullpublic Set<OntologyAxiomPair> parseManchesterExpressionFrames(String expression)
expression
- expressionOntologyAxiomPair
ParserException
- parser exceptionpublic OWLClassExpression parseManchesterExpression(String expression)
expression
- expressionOWLClassExpression
ParserException
- parser exceptionpublic String getId(IRI iri)
IRI
into the short form as expected by the parser.iri
- iripublic String getId(OWLEntity entity)
OWLEntity
identifier into the short form as expected by the parser.entity
- entitypublic void dispose()
Copyright © 2020 The University of Manchester. All rights reserved.