eu.monnetproject.lemon.impl.io.turtle
Class TurtleParser

java.lang.Object
  extended by eu.monnetproject.lemon.impl.io.turtle.ParserBase
      extended by eu.monnetproject.lemon.impl.io.turtle.TurtleParser
All Implemented Interfaces:
TurtleParserConstants

public class TurtleParser
extends ParserBase
implements TurtleParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 TurtleParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from class eu.monnetproject.lemon.impl.io.turtle.ParserBase
nLogImplies, nOwlSameAs, nRDFfirst, nRDFnil, nRDFrest, nRDFtype, skolomizedBNodes, strictTurtle, SWAP_LOG_NS, SWAP_NS, XSD_FALSE, XSD_TRUE
 
Fields inherited from interface eu.monnetproject.lemon.impl.io.turtle.TurtleParserConstants
A2Z, A2ZN, ANON, ARROW, AT, BASE, BLANK_NODE_LABEL, BOM, CARROT, COLON, COMMA, DATATYPE, DECIMAL, DEFAULT, DIGITS, DOLLAR, DOT, DOUBLE, ECHAR, EOF, EQ, EXPONENT, FALSE, FPATH, INTEGER, IRIref, KW_A, LANGTAG, LBRACE, LBRACKET, LPAREN, NIL, PLING, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, QMARK, QUOTE_3D, QUOTE_3S, RBRACE, RBRACKET, RPAREN, RPATH, RSLASH, SEMICOLON, SINGLE_LINE_COMMENT, SLASH, STAR, STRING_LITERAL_LONG1, STRING_LITERAL_LONG2, STRING_LITERAL1, STRING_LITERAL2, TILDE, tokenImage, TRUE, UNKNOWN, VAR, VARNAME, VBAR, WS
 
Constructor Summary
TurtleParser(InputStream stream, LemonModelImpl model)
          Constructor with InputStream.
TurtleParser(InputStream stream, String encoding, LemonModelImpl model)
          Constructor with InputStream and supplied encoding
TurtleParser(Reader stream, LemonModelImpl model)
          Constructor.
TurtleParser(Reader stream, Visitor visitor)
           
TurtleParser(TurtleParserTokenManager tm, LemonModelImpl model)
          Constructor with generated Token Manager.
 
Method Summary
 Token AnyDirective()
           
 Node BlankNode()
           
 Node BlankNodePropertyList()
           
 Node BooleanLiteral()
           
 Node Collection()
           
 void Directive()
           
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 Node Formula()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 Node GraphNode()
           
 Node GraphTerm()
           
 String IRI_REF()
           
 String IRIref()
           
 String Langtag()
           
 Node NumericLiteral()
           
 void Object(Node s, Node p)
           
 void ObjectList(Node s, Node p)
           
 void parse()
           
 String PrefixedName()
           
 void PropertyList(Node s)
           
 void PropertyListNotEmpty(Node s)
           
 Node RDFLiteral()
           
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void ReInit(TurtleParserTokenManager tm)
          Reinitialise.
 void Statement()
           
 String String()
           
 Node TriplesNode()
           
 void TriplesSameSubject()
           
 Node Var()
           
 Node VarOrTerm()
           
 Node Verb()
           
 
Methods inherited from class eu.monnetproject.lemon.impl.io.turtle.ParserBase
createBNode, createBNode, createListNode, createLiteral, createLiteral, createLiteralDecimal, createLiteralDouble, createLiteralInteger, createNode, createVariable, doubleValue, emitTriple, endFormula, exMsg, fixupPrefix, getBaseURI, integerValue, isBNodeIRI, makePositiveInteger, resolveIRI, resolvePName, resolveQuotedIRI, setBase, setBaseURI, setPrefix, startFormula, stripChars, stripQuotes, stripQuotes3, throwParseException, unescapeStr, unescapeStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public TurtleParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

TurtleParser

public TurtleParser(InputStream stream,
                    LemonModelImpl model)
Constructor with InputStream.


TurtleParser

public TurtleParser(InputStream stream,
                    String encoding,
                    LemonModelImpl model)
Constructor with InputStream and supplied encoding


TurtleParser

public TurtleParser(Reader stream,
                    Visitor visitor)

TurtleParser

public TurtleParser(Reader stream,
                    LemonModelImpl model)
Constructor.


TurtleParser

public TurtleParser(TurtleParserTokenManager tm,
                    LemonModelImpl model)
Constructor with generated Token Manager.

Method Detail

parse

public final void parse()
                 throws ParseException
Throws:
ParseException

Statement

public final void Statement()
                     throws ParseException
Throws:
ParseException

Directive

public final void Directive()
                     throws ParseException
Throws:
ParseException

TriplesSameSubject

public final void TriplesSameSubject()
                              throws ParseException
Throws:
ParseException

PropertyList

public final void PropertyList(Node s)
                        throws ParseException
Throws:
ParseException

PropertyListNotEmpty

public final void PropertyListNotEmpty(Node s)
                                throws ParseException
Throws:
ParseException

ObjectList

public final void ObjectList(Node s,
                             Node p)
                      throws ParseException
Throws:
ParseException

Object

public final void Object(Node s,
                         Node p)
                  throws ParseException
Throws:
ParseException

Verb

public final Node Verb()
                throws ParseException
Throws:
ParseException

TriplesNode

public final Node TriplesNode()
                       throws ParseException
Throws:
ParseException

BlankNodePropertyList

public final Node BlankNodePropertyList()
                                 throws ParseException
Throws:
ParseException

Collection

public final Node Collection()
                      throws ParseException
Throws:
ParseException

GraphNode

public final Node GraphNode()
                     throws ParseException
Throws:
ParseException

VarOrTerm

public final Node VarOrTerm()
                     throws ParseException
Throws:
ParseException

Formula

public final Node Formula()
                   throws ParseException
Throws:
ParseException

Var

public final Node Var()
               throws ParseException
Throws:
ParseException

GraphTerm

public final Node GraphTerm()
                     throws ParseException
Throws:
ParseException

NumericLiteral

public final Node NumericLiteral()
                          throws ParseException
Throws:
ParseException

RDFLiteral

public final Node RDFLiteral()
                      throws ParseException
Throws:
ParseException

Langtag

public final String Langtag()
                     throws ParseException
Throws:
ParseException

AnyDirective

public final Token AnyDirective()
                         throws ParseException
Throws:
ParseException

BooleanLiteral

public final Node BooleanLiteral()
                          throws ParseException
Throws:
ParseException

String

public final String String()
                    throws ParseException
Throws:
ParseException

IRIref

public final String IRIref()
                    throws ParseException
Throws:
ParseException

PrefixedName

public final String PrefixedName()
                          throws ParseException
Throws:
ParseException

BlankNode

public final Node BlankNode()
                     throws ParseException
Throws:
ParseException

IRI_REF

public final String IRI_REF()
                     throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(TurtleParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2012. All Rights Reserved.