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(@Nonnull OWLOntology inputOntology)
OWLObject
instances via their identifier or rdfs:label.inputOntology
- inputOntologypublic ManchesterSyntaxTool(@Nonnull OWLOntology inputOntology, @Nullable Collection<OWLOntology> auxiliaryOntologies)
OWLObject
instances via their identifier or rdfs:label.inputOntology
- inputOntologyauxiliaryOntologies
- set of additional ontologies or nullpublic Set<OntologyAxiomPair> parseManchesterExpressionFrames(@Nonnull String expression)
expression
- expressionOntologyAxiomPair
ParserException
- parser exceptionpublic OWLClassExpression parseManchesterExpression(@Nonnull String expression)
expression
- expressionOWLClassExpression
ParserException
- parser exceptionpublic String getId(@Nonnull IRI iri)
IRI
into the short form as expected by the parser.iri
- iripublic String getId(@Nonnull 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.