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.DatatypeHandling
object, predicate, subject
rdfHandler, 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 |
---|---|
protected int |
getLineNumber() |
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 Resource |
parseNodeID()
Parses a blank node ID, e.g.
|
void |
setAllowBlankNodes(boolean allowBlankNodes) |
void |
setLineNumberOffset(int lineNumberOffset) |
getContext, parseStatement, parseTriples, reportStatement, setContext
getSupportedSettings, 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, 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 SPARQLUpdateDataBlockParser()
SimpleValueFactory
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 RDFParseException, RDFHandlerException, IOException
parseGraph
in class TriGParser
RDFParseException
RDFHandlerException
IOException
protected Resource parseImplicitBlank() throws IOException, RDFParseException, RDFHandlerException
TurtleParser
parseImplicitBlank
in class TurtleParser
IOException
RDFParseException
RDFHandlerException
protected Resource parseNodeID() throws IOException, RDFParseException
TurtleParser
parseNodeID
in class TurtleParser
IOException
RDFParseException
public boolean isAllowBlankNodes()
public void setAllowBlankNodes(boolean allowBlankNodes)
allowBlankNodes
- The allowBlankNodes to set.protected int getLineNumber()
getLineNumber
in class TurtleParser
public void setLineNumberOffset(int lineNumberOffset)
lineNumberOffset
- Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.