org.obolibrary.macro
Class ManchesterSyntaxTool

java.lang.Object
  extended by org.obolibrary.macro.ManchesterSyntaxTool

public class ManchesterSyntaxTool
extends Object

wrapper for parsing Manchester Syntax

Author:
heiko

Constructor Summary
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.
ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology, Collection<org.semanticweb.owlapi.model.OWLOntology> auxiliaryOntologies, boolean resolveEntities)
          Create a new parser instance for the given ontologies.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManchesterSyntaxTool

public ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology)
Create a new parser instance for the given ontology. By default, this parser will also try to resolve OWLObjects via their identifier or rdfs:label.

Parameters:
inputOntology -

ManchesterSyntaxTool

public ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology,
                            Collection<org.semanticweb.owlapi.model.OWLOntology> auxiliaryOntologies)
Create a new parser instance for the given ontologies. By default, this parser will also try to resolve OWLObjects via their identifier or rdfs:label.

Parameters:
inputOntology -
auxiliaryOntologies - set of additional ontologies or null

ManchesterSyntaxTool

public ManchesterSyntaxTool(org.semanticweb.owlapi.model.OWLOntology inputOntology,
                            Collection<org.semanticweb.owlapi.model.OWLOntology> auxiliaryOntologies,
                            boolean resolveEntities)
Create a new parser instance for the given ontologies.

Parameters:
inputOntology -
auxiliaryOntologies - set of additional ontologies or null
resolveEntities - set to true, to enable resolution of OWLObjects via their identifier or rdfs:label
Method Detail

parseManchesterExpressionFrames

public Set<org.coode.owlapi.manchesterowlsyntax.OntologyAxiomPair> parseManchesterExpressionFrames(String expression)
                                                                                            throws org.semanticweb.owlapi.expression.ParserException
Parse frame expressions in Manchester syntax.

Parameters:
expression -
Returns:
set of OntologyAxiomPair
Throws:
org.semanticweb.owlapi.expression.ParserException

parseManchesterExpression

public org.semanticweb.owlapi.model.OWLClassExpression parseManchesterExpression(String expression)
                                                                          throws org.semanticweb.owlapi.expression.ParserException
Parse a class expression in Manchester syntax.

Parameters:
expression -
Returns:
OWLClassExpression
Throws:
org.semanticweb.owlapi.expression.ParserException

getId

public String getId(org.semanticweb.owlapi.model.IRI iri)
Translate the IRI into the short form as expected by the parser.

Parameters:
iri -
Returns:
short form

getId

public String getId(org.semanticweb.owlapi.model.OWLEntity entity)
Translate the OWLEntity identifier into the short form as expected by the parser.

Parameters:
entity -
Returns:
short form


Copyright © 2010-2012. All Rights Reserved.