public class ManchesterSyntaxTool extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.semanticweb.owlapi.util.IRIShortFormProvider |
iriShortFormProvider |
| 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.coode.owlapi.manchesterowlsyntax.OntologyAxiomPair> |
parseManchesterExpressionFrames(String expression)
Parse frame expressions in Manchester syntax.
|
protected final org.semanticweb.owlapi.util.IRIShortFormProvider iriShortFormProvider
public ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology)
inputOntology - inputOntologypublic ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology,
Collection<org.semanticweb.owlapi.model.OWLOntology> auxiliaryOntologies)
inputOntology - inputOntologyauxiliaryOntologies - set of additional ontologies or nullpublic Set<org.coode.owlapi.manchesterowlsyntax.OntologyAxiomPair> parseManchesterExpressionFrames(String expression)
expression - expressionOntologyAxiomPairorg.semanticweb.owlapi.expression.ParserException - parser exceptionpublic org.semanticweb.owlapi.model.OWLClassExpression parseManchesterExpression(String expression)
expression - expressionOWLClassExpressionorg.semanticweb.owlapi.expression.ParserException - parser exceptionpublic String getId(org.semanticweb.owlapi.model.IRI iri)
IRI into the short form as expected by the parser.iri - iripublic String getId(org.semanticweb.owlapi.model.OWLEntity entity)
OWLEntity identifier into the short form as
expected by the parser.entity - entitypublic void dispose()
Copyright © 2010-2015 The University of Manchester. All Rights Reserved.