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,
org.semanticweb.owlapi.model.IRI base) |
Instantiates a new turtle parser.
|
TurtleParser(Reader stream) |
Constructor.
|
TurtleParser(Reader reader,
TripleHandler handler,
org.semanticweb.owlapi.model.IRI base) |
Instantiates a new turtle parser.
|
TurtleParser(TurtleParserTokenManager tm) |
Constructor with generated Token Manager.
|
Modifier and Type | Method | Description |
---|---|---|
void |
disable_tracing() |
Disable tracing.
|
void |
enable_tracing() |
Enable tracing.
|
org.semanticweb.owlapi.rdf.turtle.parser.ParseException |
generateParseException() |
Generate ParseException.
|
org.semanticweb.owlapi.model.IRI |
getIRI(String s) |
Gets the iri.
|
Token |
getNextToken() |
Get the next Token.
|
org.semanticweb.owlapi.model.PrefixManager |
getPrefixManager() |
Gets the prefix manager.
|
Token |
getToken(int index) |
Get the specific Token.
|
org.semanticweb.owlapi.model.IRI |
parseAbbreviatedIRI() |
|
void |
parseBaseDirective() |
|
org.semanticweb.owlapi.model.IRI |
parseBlankNode() |
|
String |
parseBoolean() |
|
org.semanticweb.owlapi.model.IRI |
parseCollection() |
|
String |
parseDecimal() |
|
void |
parseDirective() |
|
void |
parseDocument() |
|
String |
parseDouble() |
|
String |
parseInteger() |
|
org.semanticweb.owlapi.model.IRI |
parseIRI() |
|
org.semanticweb.owlapi.model.IRI |
parseItemList() |
|
void |
parseLiteral(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate) |
|
org.semanticweb.owlapi.model.IRI |
parseLoneNS() |
|
org.semanticweb.owlapi.model.IRI |
parseNodeID() |
|
void |
parseObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate) |
|
void |
parseObjectList(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate) |
|
org.semanticweb.owlapi.model.IRI |
parsePredicate() |
|
void |
parsePredicateObjectList(org.semanticweb.owlapi.model.IRI subject) |
|
void |
parsePrefixDirective() |
|
String |
parseQuotedString() |
|
org.semanticweb.owlapi.model.IRI |
parseResource() |
|
void |
parseStatement() |
|
String |
parseString() |
|
org.semanticweb.owlapi.model.IRI |
parseSubject() |
|
void |
parseTriples() |
|
org.semanticweb.owlapi.model.IRI |
parseVerb() |
|
void |
ReInit(InputStream stream) |
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding) |
Reinitialise.
|
void |
ReInit(Reader stream) |
Reinitialise.
|
void |
ReInit(TurtleParserTokenManager tm) |
Reinitialise.
|
void |
setTripleHandler(TripleHandler handler) |
Sets the triple handler.
|
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
public TurtleParser(Reader reader, TripleHandler handler, org.semanticweb.owlapi.model.IRI base)
reader
- the readerhandler
- the handlerbase
- the basepublic TurtleParser(InputStream is, TripleHandler handler, org.semanticweb.owlapi.model.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 org.semanticweb.owlapi.model.PrefixManager getPrefixManager()
public void setTripleHandler(TripleHandler handler)
handler
- the new triple handlerpublic org.semanticweb.owlapi.model.IRI getIRI(String s)
s
- the spublic 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 org.semanticweb.owlapi.model.IRI parseSubject() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseLoneNS() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseAbbreviatedIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseBlankNode() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseNodeID() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parsePredicateObjectList(org.semanticweb.owlapi.model.IRI subject) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseVerb() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parsePredicate() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseResource() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObjectList(org.semanticweb.owlapi.model.IRI subject, org.semanticweb.owlapi.model.IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObject(org.semanticweb.owlapi.model.IRI subject, org.semanticweb.owlapi.model.IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseCollection() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final org.semanticweb.owlapi.model.IRI parseItemList() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseLiteral(org.semanticweb.owlapi.model.IRI subject, org.semanticweb.owlapi.model.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.