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.
|
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 baseIOException
public TurtleParser(InputStream is, TripleHandler handler, IRI base) throws IOException
is
- the ishandler
- the handlerbase
- the baseIOException
public 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
public 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
public final void parseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parsePrefixDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseBaseDirective() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseStatement() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseTriples() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseSubject() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseLoneNS() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseAbbreviatedIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseIRI() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseBlankNode() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseNodeID() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parsePredicateObjectList(IRI subject) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseVerb() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parsePredicate() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseResource() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObjectList(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseObject(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseCollection() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final IRI parseItemList() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final void parseLiteral(IRI subject, IRI predicate) throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseInteger() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseDouble() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseDecimal() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseBoolean() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseQuotedString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public final String parseString() throws org.semanticweb.owlapi.rdf.turtle.parser.ParseException
public 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 © 2020 The University of Manchester. All rights reserved.