public class TurtleParser extends Object implements TurtleParserConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
Token |
token |
TurtleParserTokenManager |
token_source |
A, ANY_CHAR, ANY_ESCAPED_CHAR, ANY_ESCAPED_CHAR_IN_LONG_STRING, 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_STRING, IN_STRING, INTEGER, LETTER, 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, SELECT, SEMICOLON, STRING, STRING_START, THREEQUOTES, tokenImage, TRUE, WHERE| Constructor and Description |
|---|
TurtleParser(InputStream stream) |
TurtleParser(InputStream stream,
String encoding) |
TurtleParser(InputStream is,
TripleHandler handler,
org.semanticweb.owlapi.model.IRI base) |
TurtleParser(Reader stream) |
TurtleParser(Reader reader,
TripleHandler handler,
org.semanticweb.owlapi.model.IRI base) |
TurtleParser(TurtleParserTokenManager tm) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable_tracing() |
void |
enable_tracing() |
ParseException |
generateParseException() |
org.semanticweb.owlapi.model.IRI |
getIRI(String s) |
protected org.semanticweb.owlapi.model.IRI |
getIRIFromQName(String qname) |
protected org.semanticweb.owlapi.model.IRI |
getNextBlankNode(String id) |
Token |
getNextToken() |
org.semanticweb.owlapi.model.PrefixManager |
getPrefixManager() |
Token |
getToken(int index) |
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) |
void |
ReInit(InputStream stream,
String encoding) |
void |
ReInit(Reader stream) |
void |
ReInit(TurtleParserTokenManager tm) |
void |
setTripleHandler(TripleHandler handler) |
public TurtleParserTokenManager token_source
public Token token
public Token jj_nt
public TurtleParser(Reader reader, TripleHandler handler, org.semanticweb.owlapi.model.IRI base)
public TurtleParser(InputStream is, TripleHandler handler, org.semanticweb.owlapi.model.IRI base)
public 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)
protected org.semanticweb.owlapi.model.IRI getNextBlankNode(String id)
protected org.semanticweb.owlapi.model.IRI getIRIFromQName(String qname) throws ParseException
ParseExceptionpublic org.semanticweb.owlapi.model.IRI getIRI(String s)
public final void parseDocument()
throws ParseException
ParseExceptionpublic final void parseDirective()
throws ParseException
ParseExceptionpublic final void parsePrefixDirective()
throws ParseException
ParseExceptionpublic final void parseBaseDirective()
throws ParseException
ParseExceptionpublic final void parseStatement()
throws ParseException
ParseExceptionpublic final void parseTriples()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseSubject()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseLoneNS()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseAbbreviatedIRI()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseIRI()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseBlankNode()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseNodeID()
throws ParseException
ParseExceptionpublic final void parsePredicateObjectList(org.semanticweb.owlapi.model.IRI subject)
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseVerb()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parsePredicate()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseResource()
throws ParseException
ParseExceptionpublic final void parseObjectList(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
throws ParseException
ParseExceptionpublic final void parseObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseCollection()
throws ParseException
ParseExceptionpublic final org.semanticweb.owlapi.model.IRI parseItemList()
throws ParseException
ParseExceptionpublic final void parseLiteral(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
throws ParseException
ParseExceptionpublic final String parseInteger() throws ParseException
ParseExceptionpublic final String parseDouble() throws ParseException
ParseExceptionpublic final String parseDecimal() throws ParseException
ParseExceptionpublic final String parseBoolean() throws ParseException
ParseExceptionpublic final String parseQuotedString() throws ParseException
ParseExceptionpublic final String parseString() throws ParseException
ParseExceptionpublic 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()
Copyright © 2014 The University of Manchester. All Rights Reserved.