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.
TurtleParser
RDFParser.DatatypeHandling
rdfHandler, 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()
Gets the RDF format that this parser can parse.
|
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, verifyCharacterOrFail
clear, 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, verifyData
public TriGParser()
ValueFactoryImpl
to
create RDF model objects.public TriGParser(ValueFactory valueFactory)
valueFactory
- A ValueFactory.public RDFFormat getRDFFormat()
RDFParser
getRDFFormat
in interface RDFParser
getRDFFormat
in class TurtleParser
protected void parseStatement() throws IOException, RDFParseException, RDFHandlerException
parseStatement
in class TurtleParser
IOException
RDFParseException
RDFHandlerException
protected void parseGraph() throws IOException, RDFParseException, RDFHandlerException
protected void reportStatement(Resource subj, URI pred, Value obj) throws RDFParseException, RDFHandlerException
reportStatement
in class TurtleParser
RDFParseException
RDFHandlerException
protected void setContext(Resource context)
protected Resource getContext()
Copyright © 2001-2016 Aduna. All Rights Reserved.