public class ManchesterSyntaxTool extends Object
Constructor | 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 | 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)
inputOntology
- inputOntologypublic ManchesterSyntaxTool(@Nonnull OWLOntology inputOntology, @Nullable Collection<OWLOntology> auxiliaryOntologies)
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 © 2018 The University of Manchester. All rights reserved.