public class TriGParser extends TurtleParser
TurtleParserRDFParser.DatatypeHandlingobject, predicate, subjectrdfHandler, 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, verifyCharacterOrFailclear, 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, verifyDatapublic TriGParser()
SimpleValueFactory to create RDF model objects.public TriGParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public RDFFormat getRDFFormat()
RDFParsergetRDFFormat in interface RDFParsergetRDFFormat in class TurtleParserprotected void parseStatement()
throws IOException,
RDFParseException,
RDFHandlerException
parseStatement in class TurtleParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected void parseGraph()
throws IOException,
RDFParseException,
RDFHandlerException
protected void parseTriples()
throws IOException,
RDFParseException,
RDFHandlerException
parseTriples in class TurtleParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected void reportStatement(Resource subj, IRI pred, Value obj) throws RDFParseException, RDFHandlerException
reportStatement in class TurtleParserRDFParseExceptionRDFHandlerExceptionprotected void setContext(Resource context)
protected Resource getContext()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.