public class ManchesterSyntaxTool extends Object
| Constructor and Description |
|---|
ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology)
Create a new parser instance for the given ontology.
|
ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology,
Collection<org.semanticweb.owlapi.model.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(org.semanticweb.owlapi.model.IRI iri)
Translate the
IRI into the short form as expected by the parser. |
String |
getId(org.semanticweb.owlapi.model.OWLEntity entity)
Translate the
OWLEntity identifier into the short form as
expected by the parser. |
org.semanticweb.owlapi.model.OWLClassExpression |
parseManchesterExpression(String expression)
Parse a class expression in Manchester syntax.
|
Set<org.semanticweb.owlapi.util.OntologyAxiomPair> |
parseManchesterExpressionFrames(String expression)
Parse frame expressions in Manchester syntax.
|
public ManchesterSyntaxTool(@Nonnull org.semanticweb.owlapi.model.OWLOntology inputOntology)
inputOntology - inputOntologypublic ManchesterSyntaxTool(@Nonnull org.semanticweb.owlapi.model.OWLOntology inputOntology, @Nullable Collection<org.semanticweb.owlapi.model.OWLOntology> auxiliaryOntologies)
inputOntology - inputOntologyauxiliaryOntologies - set of additional ontologies or nullpublic Set<org.semanticweb.owlapi.util.OntologyAxiomPair> parseManchesterExpressionFrames(@Nonnull String expression)
expression - expressionOntologyAxiomPairParserException - parser exceptionpublic org.semanticweb.owlapi.model.OWLClassExpression parseManchesterExpression(@Nonnull String expression)
expression - expressionOWLClassExpressionParserException - parser exceptionpublic String getId(@Nonnull org.semanticweb.owlapi.model.IRI iri)
IRI into the short form as expected by the parser.iri - iripublic String getId(@Nonnull org.semanticweb.owlapi.model.OWLEntity entity)
OWLEntity identifier into the short form as
expected by the parser.entity - entitypublic void dispose()
Copyright © 2010–2020 The University of Manchester. All rights reserved.