public class TurtleParser extends Object implements TurtleParserConstants
| Modifier and Type | Field and Description |
|---|---|
org.semanticweb.owlapi.rdf.turtle.parser.Token |
jj_nt
Next token.
|
org.semanticweb.owlapi.rdf.turtle.parser.Token |
token
Current token.
|
org.semanticweb.owlapi.rdf.turtle.parser.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 and Description |
|---|
TurtleParser(InputStream is,
TripleHandler handler,
IRI base)
Instantiates a new turtle parser.
|
TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.Provider stream)
Constructor.
|
TurtleParser(Reader reader,
TripleHandler handler,
IRI base)
Instantiates a new turtle parser.
|
TurtleParser(String dsl)
Constructor.
|
TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager tm)
Constructor with generated Token Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
org.semanticweb.owlapi.rdf.turtle.parser.ParseException |
generateParseException()
Generate ParseException.
|
IRI |
getIRI(String s)
Gets the iri.
|
org.semanticweb.owlapi.rdf.turtle.parser.Token |
getNextToken()
Get the next Token.
|
PrefixManager |
getPrefixManager()
Gets the prefix manager.
|
org.semanticweb.owlapi.rdf.turtle.parser.Token |
getToken(int index)
Get the specific Token.
|
IRI |
parseAbbreviatedIRI() |
void |
parseBaseDirective() |
IRI |
parseBlankNode() |
String |
parseBoolean() |
IRI |
parseCollection() |
String |
parseDecimal() |
void |
parseDirective() |
void |
parseDocument() |
String |
parseDouble() |
String |
parseInteger() |
IRI |
parseIRI() |
IRI |
parseItemList() |
void |
parseLiteral(IRI subject,
IRI predicate) |
IRI |
parseLoneNS() |
IRI |
parseNodeID() |
void |
parseObject(IRI subject,
IRI predicate) |
void |
parseObjectList(IRI subject,
IRI predicate) |
IRI |
parsePredicate() |
void |
parsePredicateObjectList(IRI subject) |
void |
parsePrefixDirective() |
String |
parseQuotedString() |
IRI |
parseResource() |
void |
parseStatement() |
String |
parseString() |
IRI |
parseSubject() |
void |
parseTriples() |
IRI |
parseVerb() |
void |
ReInit(org.semanticweb.owlapi.rdf.turtle.parser.Provider stream)
Reinitialise.
|
void |
ReInit(String s) |
void |
ReInit(org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager tm)
Reinitialise.
|
void |
setTripleHandler(TripleHandler handler)
Sets the triple handler.
|
boolean |
trace_enabled()
Trace enabled.
|
public org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager token_source
public org.semanticweb.owlapi.rdf.turtle.parser.Token token
public org.semanticweb.owlapi.rdf.turtle.parser.Token jj_nt
public TurtleParser(Reader reader, TripleHandler handler, IRI base) throws IOException
reader - the readerhandler - the handlerbase - the baseIOExceptionpublic TurtleParser(InputStream is, TripleHandler handler, IRI base) throws IOException
is - the ishandler - the handlerbase - the baseIOExceptionpublic TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.Provider stream)
public TurtleParser(String dsl) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException, org.semanticweb.owlapi.rdf.turtle.parser.TokenMgrException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionorg.semanticweb.owlapi.rdf.turtle.parser.TokenMgrExceptionpublic TurtleParser(org.semanticweb.owlapi.rdf.turtle.parser.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.ParseExceptionpublic final void parseDirective()
throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parsePrefixDirective()
throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseBaseDirective()
throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseStatement()
throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseTriples()
throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseSubject() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseLoneNS() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseAbbreviatedIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseBlankNode() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseNodeID() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parsePredicateObjectList(IRI subject) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseVerb() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parsePredicate() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseResource() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseObjectList(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseObject(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseCollection() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final IRI parseItemList() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final void parseLiteral(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseInteger() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseDouble() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseDecimal() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseBoolean() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseQuotedString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic final String parseString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
org.semanticweb.owlapi.rdf.turtle.parser.ParseExceptionpublic void ReInit(String s)
public void ReInit(org.semanticweb.owlapi.rdf.turtle.parser.Provider stream)
public void ReInit(org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserTokenManager tm)
public final org.semanticweb.owlapi.rdf.turtle.parser.Token getNextToken()
public final org.semanticweb.owlapi.rdf.turtle.parser.Token getToken(int index)
public org.semanticweb.owlapi.rdf.turtle.parser.ParseException generateParseException()
public final boolean trace_enabled()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2019 The University of Manchester. All rights reserved.