public class TriGParser extends TurtleParser
TurtleParser
RDFParser.DatatypeHandling
object, predicate, subject
rdfHandler, valueFactory
Constructor and Description |
---|
TriGParser()
Creates a new TriGParser that will use a
SimpleValueFactory 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 |
parseTriples() |
protected void |
reportStatement(Resource subj,
IRI pred,
Value obj) |
protected void |
setContext(Resource context) |
getLineNumber, getSupportedSettings, parse, parse, parseBase, parseCollection, parseDirective, parseImplicitBlank, parseLongString, parseNodeID, parseNumber, parseObject, parseObjectList, parsePredicate, parsePredicateObjectList, parsePrefixID, parseQNameOrBoolean, parseQuotedLiteral, parseQuotedString, parseString, parseSubject, parseTripleValue, parseURI, parseValue, peekCodePoint, peekIsTripleValue, processComment, readCodePoint, reportError, reportFatalError, reportFatalError, reportLocation, reportWarning, skipWSC, throwEOFException, unread, unread, verifyCharacterOrFail
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createNode, createNode, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyData
public TriGParser()
SimpleValueFactory
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 parseTriples() throws IOException, RDFParseException, RDFHandlerException
parseTriples
in class TurtleParser
IOException
RDFParseException
RDFHandlerException
protected void reportStatement(Resource subj, IRI pred, Value obj) throws RDFParseException, RDFHandlerException
reportStatement
in class TurtleParser
RDFParseException
RDFHandlerException
protected void setContext(Resource context)
protected Resource getContext()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.