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
ValueFactoryImpl 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()
Gets the RDF format that this parser can parse.
|
boolean |
isAllowBlankNodes() |
protected void |
parseGraph() |
protected Resource |
parseImplicitBlank()
Parses an implicit blank node.
|
protected BNode |
parseNodeID()
Parses a blank node ID, e.g.
|
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, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyDatapublic SPARQLUpdateDataBlockParser()
ValueFactoryImpl to create
RDF model objects.public SPARQLUpdateDataBlockParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.public RDFFormat getRDFFormat()
RDFParsergetRDFFormat in interface RDFParsergetRDFFormat in class TriGParserprotected void parseGraph()
throws RDFParseException,
RDFHandlerException,
IOException
parseGraph in class TriGParserRDFParseExceptionRDFHandlerExceptionIOExceptionprotected Resource parseImplicitBlank() throws IOException, RDFParseException, RDFHandlerException
TurtleParserparseImplicitBlank in class TurtleParserIOExceptionRDFParseExceptionRDFHandlerExceptionprotected BNode parseNodeID() throws IOException, RDFParseException
TurtleParserparseNodeID in class TurtleParserIOExceptionRDFParseExceptionpublic boolean isAllowBlankNodes()
public void setAllowBlankNodes(boolean allowBlankNodes)
allowBlankNodes - The allowBlankNodes to set.Copyright © 2001–2015 Aduna. All rights reserved.