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 differentces:
RDFParser.DatatypeHandling
rdfHandler, 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, reportStatement, setContext
getSupportedSettings, parse, parse, parseBase, parseCollection, parseDirective, parseLongString, 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 SPARQLUpdateDataBlockParser()
ValueFactoryImpl
to create
RDF model objects.public SPARQLUpdateDataBlockParser(ValueFactory valueFactory)
valueFactory
- A ValueFactory.public RDFFormat getRDFFormat()
RDFParser
getRDFFormat
in interface RDFParser
getRDFFormat
in class TriGParser
protected void parseGraph() throws IOException, RDFParseException, RDFHandlerException
parseGraph
in class TriGParser
IOException
RDFParseException
RDFHandlerException
protected Resource parseImplicitBlank() throws IOException, RDFParseException, RDFHandlerException
TurtleParser
parseImplicitBlank
in class TurtleParser
IOException
RDFParseException
RDFHandlerException
protected BNode parseNodeID() throws IOException, RDFParseException
TurtleParser
parseNodeID
in class TurtleParser
IOException
RDFParseException
public boolean isAllowBlankNodes()
public void setAllowBlankNodes(boolean allowBlankNodes)
allowBlankNodes
- The allowBlankNodes to set.Copyright © 2001-2016 Aduna. All Rights Reserved.