public class SPARQLUpdateDataBlockParser extends TriGParser
TriGParser that processes data in the format specified in the SPARQL 1.1 grammar
for Quad data (assuming no variables, as is the case for INSERT DATA and DELETE DATA operations). This
format is almost completely compatible with TriG, except for three differences:
RDFParser.DatatypeHandlingobject, predicate, subjectrdfHandler, valueFactory| Constructor and Description |
|---|
SPARQLUpdateDataBlockParser()
Creates a new parser that will use a
SimpleValueFactory to create RDF model objects. |
SPARQLUpdateDataBlockParser(ValueFactory valueFactory)
Creates a new parser that will use the supplied ValueFactory to create RDF model objects.
|
| Modifier and Type | Method and Description |
|---|---|
RDFFormat |
getRDFFormat() |
boolean |
isAllowBlankNodes() |
protected void |
parseGraph() |
protected Resource |
parseImplicitBlank() |
protected BNode |
parseNodeID() |
void |
setAllowBlankNodes(boolean allowBlankNodes) |
getContext, parseStatement, parseTriples, reportStatement, setContextgetSupportedSettings, parse, parse, parseBase, parseCollection, parseDirective, parseLongString, parseNumber, parseObject, parseObjectList, parsePredicate, parsePredicateObjectList, parsePrefixID, parseQNameOrBoolean, parseQuotedLiteral, parseQuotedString, parseString, parseSubject, parseURI, parseValue, peekCodePoint, processComment, readCodePoint, reportError, reportFatalError, reportFatalError, reportLocation, reportWarning, skipWSC, throwEOFException, unread, unread, verifyCharacterOrFailclear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportFatalError, reportFatalError, reportLocation, reportWarning, resolveURI, set, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic SPARQLUpdateDataBlockParser()
SimpleValueFactory to create RDF model objects.public SPARQLUpdateDataBlockParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public RDFFormat getRDFFormat()
getRDFFormat in interface RDFParsergetRDFFormat in class TriGParserprotected void parseGraph()
throws RDFParseException,
RDFHandlerException,
IOException
parseGraph in class TriGParserRDFParseExceptionRDFHandlerExceptionIOExceptionprotected Resource parseImplicitBlank() throws IOException, RDFParseException, RDFHandlerException
parseImplicitBlank in class TurtleParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected BNode parseNodeID() throws IOException, RDFParseException
parseNodeID in class TurtleParserIOExceptionRDFParseExceptionpublic boolean isAllowBlankNodes()
public void setAllowBlankNodes(boolean allowBlankNodes)
allowBlankNodes - The allowBlankNodes to set.Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.