Class DLSyntaxParser

java.lang.Object
org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParser

public class DLSyntaxParser extends Object
  • Field Details

  • Constructor Details

    • DLSyntaxParser

      public DLSyntaxParser(org.semanticweb.owlapi.dlsyntax.parser.Provider stream)
      Constructor.
    • DLSyntaxParser

      public DLSyntaxParser(String dsl) throws org.semanticweb.owlapi.dlsyntax.parser.ParseException, org.semanticweb.owlapi.dlsyntax.parser.TokenMgrException
      Constructor.
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
      org.semanticweb.owlapi.dlsyntax.parser.TokenMgrException
    • DLSyntaxParser

      public DLSyntaxParser(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm)
      Constructor with generated Token Manager.
  • Method Details

    • setOWLDataFactory

      public void setOWLDataFactory(OWLDataFactory factory)
    • setPrefixMapping

      public void setPrefixMapping(String prefix, String namespace)
    • setDefaultNamespace

      public void setDefaultNamespace(String ns)
    • getIRI

      public IRI getIRI(String val)
    • getIRIFromId

      public IRI getIRIFromId(String qname)
    • parseDescription

      public final OWLClassExpression parseDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseAxioms

      public final Set<OWLAxiom> parseAxioms() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseAxiom

      public final OWLAxiom parseAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseIndividualAxiom

      public final OWLAxiom parseIndividualAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseDifferentIndividualsAxiom

      public final OWLAxiom parseDifferentIndividualsAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseObjectPropertyAssertion

      public final OWLAxiom parseObjectPropertyAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseDataPropertyAssertion

      public final OWLAxiom parseDataPropertyAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseSameIndividual

      public final OWLAxiom parseSameIndividual() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseClassAssertion

      public final OWLAxiom parseClassAssertion() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseClassAxiom

      public final OWLAxiom parseClassAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parsePropertyChain

      public final OWLAxiom parsePropertyChain() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parsePropertyAxiom

      public final OWLAxiom parsePropertyAxiom() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseClassDescription

      public final OWLClassExpression parseClassDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • Or

      public final OWLClassExpression Or() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • And

      public final OWLClassExpression And() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • NonNaryBooleanDescription

      public final OWLClassExpression NonNaryBooleanDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseObjectPropertyId

      public final OWLObjectPropertyExpression parseObjectPropertyId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseDataPropertyId

      public final OWLDataPropertyExpression parseDataPropertyId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseRestriction

      public final OWLClassExpression parseRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseSomeRestriction

      public final OWLClassExpression parseSomeRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseDataSomeRestriction

      public final OWLClassExpression parseDataSomeRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseAllRestriction

      public final OWLClassExpression parseAllRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseCardinalityRestriction

      public final OWLClassExpression parseCardinalityRestriction() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseIndividualId

      public final OWLIndividual parseIndividualId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseObjectComplementOf

      public final OWLClassExpression parseObjectComplementOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseObjectOneOf

      public final OWLClassExpression parseObjectOneOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseDataOneOf

      public final OWLDataRange parseDataOneOf() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • NamedClassOrNestedDescription

      public final OWLClassExpression NamedClassOrNestedDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseClassId

      public final OWLClass parseClassId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • NestedClassDescription

      public final OWLClassExpression NestedClassDescription() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseLiteral

      public final OWLLiteral parseLiteral() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • parseId

      public final IRI parseId() throws org.semanticweb.owlapi.dlsyntax.parser.ParseException
      Throws:
      org.semanticweb.owlapi.dlsyntax.parser.ParseException
    • ReInit

      public void ReInit(String s)
    • ReInit

      public void ReInit(org.semanticweb.owlapi.dlsyntax.parser.Provider stream)
      Reinitialise.
    • ReInit

      public void ReInit(org.semanticweb.owlapi.dlsyntax.parser.DLSyntaxParserTokenManager tm)
      Reinitialise.
    • getNextToken

      public final org.semanticweb.owlapi.dlsyntax.parser.Token getNextToken()
      Get the next Token.
    • getToken

      public final org.semanticweb.owlapi.dlsyntax.parser.Token getToken(int index)
      Get the specific Token.
    • generateParseException

      public org.semanticweb.owlapi.dlsyntax.parser.ParseException generateParseException()
      Generate ParseException.
    • trace_enabled

      public final boolean trace_enabled()
      Trace enabled.
    • enable_tracing

      public final void enable_tracing()
      Enable tracing.
    • disable_tracing

      public final void disable_tracing()
      Disable tracing.