TurtleParserConstants
public class TurtleParser extends Object implements TurtleParserConstants
Modifier and Type | Field | Description |
---|---|---|
Token |
jj_nt |
Next token.
|
Token |
token |
Current token.
|
TurtleParserTokenManager |
token_source |
Generated Token Manager.
|
A, AT, BASE, CLOSE_SQUARE_BRACKET, CLOSEPAR, COMMA, COMMENT, DECIMAL, DEFAULT, DIGIT, DOT, DOUBLE, DOUBLE_CARET, EMPTY_BLANK_NODE, EOF, ERROR, EXPONENT, FALSE, FILTER, FULLIRI, IN_LONG_SINGLESTRING, IN_LONG_STRING, IN_SINGLESTRING, IN_STRING, INTEGER, LETTER, LONG_SINGLESTRING, LONG_STRING, NODE_ID_START, NODEID, OPEN_SQUARE_BRACKET, OPENPAR, PN_CHARS, PN_CHARS_BASE, PN_CHARS_U, PN_LOCAL, PN_PREFIX, PNAME_LN, PNAME_NS, PREFIX, QUOTE, SELECT, SEMICOLON, SINGLEQUOTE, SINGLESTRING, STRING, tokenImage, TRIQUOTE, TRISINGLEQUOTE, TRUE, WHERE
Constructor | Description |
---|---|
TurtleParser(InputStream stream) |
Constructor with InputStream.
|
TurtleParser(InputStream stream,
String encoding) |
Constructor with InputStream and supplied encoding
|
TurtleParser(InputStream is,
TripleHandler handler,
IRI base) |
Instantiates a new turtle parser.
|
TurtleParser(Reader stream) |
Constructor.
|
TurtleParser(Reader reader,
TripleHandler handler,
IRI base) |
Instantiates a new turtle parser.
|
TurtleParser(TurtleParserTokenManager tm) |
Constructor with generated Token Manager.
|
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
public TurtleParser(Reader reader, TripleHandler handler, IRI base)
reader
- the readerhandler
- the handlerbase
- the basepublic TurtleParser(InputStream is, TripleHandler handler, IRI base)
is
- the ishandler
- the handlerbase
- the basepublic TurtleParser(InputStream stream)
public TurtleParser(InputStream stream, String encoding)
public TurtleParser(Reader stream)
public TurtleParser(TurtleParserTokenManager tm)
public PrefixManager getPrefixManager()
public void setTripleHandler(TripleHandler handler)
handler
- the new triple handlerpublic final void parseDocument() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parsePrefixDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseBaseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseStatement() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseTriples() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseSubject() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseLoneNS() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseAbbreviatedIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseBlankNode() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseNodeID() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parsePredicateObjectList(IRI subject) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseVerb() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parsePredicate() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseResource() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObjectList(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObject(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseCollection() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseItemList() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseLiteral(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseInteger() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseDouble() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseDecimal() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseBoolean() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseQuotedString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.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 org.semanticweb.owlapi.rdf.turtle.parser.ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2018 The University of Manchester. All rights reserved.