public class TriGParser extends TurtleParser
This implementation is based on the 2005/06/06 version of the TriG specification, but implemented as an extension of the Turtle specification of 2006/01/02.
TurtleParserRDFParser.DatatypeHandlingrdfHandler, valueFactory| Constructor and Description |
|---|
TriGParser()
Creates a new TriGParser that will use a
ValueFactoryImpl to
create RDF model objects. |
TriGParser(ValueFactory valueFactory)
Creates a new TriGParser that will use the supplied ValueFactory to create
RDF model objects.
|
| Modifier and Type | Method and Description |
|---|---|
protected Resource |
getContext() |
RDFFormat |
getRDFFormat() |
protected void |
parseGraph() |
protected void |
parseStatement() |
protected void |
reportStatement(Resource subj,
URI pred,
Value obj) |
protected void |
setContext(Resource context) |
getSupportedSettings, parse, parse, parseBase, parseCollection, parseDirective, parseImplicitBlank, parseLongString, parseNodeID, parseNumber, parseObject, parseObjectList, parsePredicate, parsePredicateObjectList, parsePrefixID, parseQNameOrBoolean, parseQuotedLiteral, parseQuotedString, parseString, parseSubject, parseTriples, parseURI, parseValue, peek, processComment, read, reportError, reportFatalError, reportFatalError, reportLocation, reportWarning, skipWSC, throwEOFException, unread, unread, verifyCharacterOrFailclear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, preserveBNodeIDs, reportError, reportError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic TriGParser()
ValueFactoryImpl to
create RDF model objects.public TriGParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public RDFFormat getRDFFormat()
getRDFFormat in interface RDFParsergetRDFFormat in class TurtleParserprotected void parseStatement()
throws IOException,
RDFParseException,
RDFHandlerException
parseStatement in class TurtleParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected void parseGraph()
throws IOException,
RDFParseException,
RDFHandlerException
protected void reportStatement(Resource subj, URI pred, Value obj) throws RDFParseException, RDFHandlerException
reportStatement in class TurtleParserRDFParseExceptionRDFHandlerExceptionprotected void setContext(Resource context)
protected Resource getContext()
Copyright © 2001-2014 Aduna. All Rights Reserved.