|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object eu.monnetproject.lemon.impl.io.turtle.ParserBase eu.monnetproject.lemon.impl.io.turtle.TurtleParser
public class TurtleParser
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 |
---|
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public TurtleParser(InputStream stream, LemonModelImpl model)
public TurtleParser(InputStream stream, String encoding, LemonModelImpl model)
public TurtleParser(Reader stream, Visitor visitor)
public TurtleParser(Reader stream, LemonModelImpl model)
public TurtleParser(TurtleParserTokenManager tm, LemonModelImpl model)
Method Detail |
---|
public final void parse() throws ParseException
ParseException
public final void Statement() throws ParseException
ParseException
public final void Directive() throws ParseException
ParseException
public final void TriplesSameSubject() throws ParseException
ParseException
public final void PropertyList(Node s) throws ParseException
ParseException
public final void PropertyListNotEmpty(Node s) throws ParseException
ParseException
public final void ObjectList(Node s, Node p) throws ParseException
ParseException
public final void Object(Node s, Node p) throws ParseException
ParseException
public final Node Verb() throws ParseException
ParseException
public final Node TriplesNode() throws ParseException
ParseException
public final Node BlankNodePropertyList() throws ParseException
ParseException
public final Node Collection() throws ParseException
ParseException
public final Node GraphNode() throws ParseException
ParseException
public final Node VarOrTerm() throws ParseException
ParseException
public final Node Formula() throws ParseException
ParseException
public final Node Var() throws ParseException
ParseException
public final Node GraphTerm() throws ParseException
ParseException
public final Node NumericLiteral() throws ParseException
ParseException
public final Node RDFLiteral() throws ParseException
ParseException
public final String Langtag() throws ParseException
ParseException
public final Token AnyDirective() throws ParseException
ParseException
public final Node BooleanLiteral() throws ParseException
ParseException
public final String String() throws ParseException
ParseException
public final String IRIref() throws ParseException
ParseException
public final String PrefixedName() throws ParseException
ParseException
public final Node BlankNode() throws ParseException
ParseException
public final String IRI_REF() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(TurtleParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |