Class TurtleParser

java.lang.Object
org.semanticweb.owlapi.rdf.turtle.parser.TurtleParser
All Implemented Interfaces:
TurtleParserConstants

public class TurtleParser extends Object implements TurtleParserConstants
The Class TurtleParser.
  • Field Details

    • token_source

      public org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager token_source
      Generated Token Manager.
    • token

      public org.semanticweb.owlapi.rdf.turtle.parser.Token token
      Current token.
    • jj_nt

      public org.semanticweb.owlapi.rdf.turtle.parser.Token jj_nt
      Next token.
  • Constructor Details

    • TurtleParser

      public TurtleParser(Reader reader, TripleHandler handler, IRI base) throws IOException
      Instantiates a new turtle parser.
      Parameters:
      reader - the reader
      handler - the handler
      base - the base
      Throws:
      IOException
    • TurtleParser

      public TurtleParser(InputStream is, TripleHandler handler, IRI base) throws IOException
      Instantiates a new turtle parser.
      Parameters:
      is - the is
      handler - the handler
      base - the base
      Throws:
      IOException
    • TurtleParser

      public TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.Provider stream)
      Constructor.
    • TurtleParser

      public TurtleParser(String dsl) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException, org.semanticweb.owlapi.rdf.turtle.parser.TokenMgrException
      Constructor.
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      org.semanticweb.owlapi.rdf.turtle.parser.TokenMgrException
    • TurtleParser

      public TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager tm)
      Constructor with generated Token Manager.
  • Method Details

    • getPrefixManager

      public PrefixManager getPrefixManager()
      Gets the prefix manager.
      Returns:
      the prefix manager
    • setTripleHandler

      public void setTripleHandler(TripleHandler handler)
      Sets the triple handler.
      Parameters:
      handler - the new triple handler
    • getIRI

      public IRI getIRI(String s)
      Gets the iri.
      Parameters:
      s - the s
      Returns:
      the iri
    • parseDocument

      public final void parseDocument() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseDirective

      public final void parseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parsePrefixDirective

      public final void parsePrefixDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseBaseDirective

      public final void parseBaseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseStatement

      public final void parseStatement() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseTriples

      public final void parseTriples() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseSubject

      public final IRI parseSubject() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseLoneNS

      public final IRI parseLoneNS() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseAbbreviatedIRI

      public final IRI parseAbbreviatedIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseIRI

      public final IRI parseIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseBlankNode

      public final IRI parseBlankNode() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseNodeID

      public final IRI parseNodeID() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parsePredicateObjectList

      public final void parsePredicateObjectList(IRI subject) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseVerb

      public final IRI parseVerb() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parsePredicate

      public final IRI parsePredicate() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseResource

      public final IRI parseResource() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseObjectList

      public final void parseObjectList(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseObject

      public final void parseObject(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseCollection

      public final IRI parseCollection() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseItemList

      public final IRI parseItemList() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseLiteral

      public final void parseLiteral(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseInteger

      public final String parseInteger() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseDouble

      public final String parseDouble() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseDecimal

      public final String parseDecimal() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseBoolean

      public final String parseBoolean() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseQuotedString

      public final String parseQuotedString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • parseString

      public final String parseString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
      Throws:
      org.semanticweb.owlapi.rdf.turtle.parser.ParseException
    • ReInit

      public void ReInit(String s)
    • ReInit

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

      public void ReInit(org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager tm)
      Reinitialise.
    • getNextToken

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

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

      public org.semanticweb.owlapi.rdf.turtle.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.