public abstract class SPARQLJSONParserBase
extends org.openrdf.query.resultio.QueryResultParserBase
Bigdata Changes:
Modifier and Type | Field and Description |
---|---|
static String |
BINDINGS |
static String |
BNODE |
static String |
BOOLEAN |
static String |
DATATYPE |
static String |
HEAD |
static String |
LINK |
static String |
LITERAL |
static String |
RESULTS |
static String |
TYPE |
static String |
TYPED_LITERAL |
static String |
URI |
static String |
VALUE |
static String |
VARS |
static String |
XMLLANG |
Constructor and Description |
---|
SPARQLJSONParserBase() |
SPARQLJSONParserBase(org.openrdf.model.ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
void |
parseQueryResult(InputStream in) |
protected boolean |
parseQueryResultInternal(InputStream in,
boolean attemptParseBoolean,
boolean attemptParseTuple) |
protected org.openrdf.model.Value |
parseValue(String bindingStr,
com.fasterxml.jackson.core.JsonParser jp)
New method added to support Bigdata Sid extension.
|
protected org.openrdf.model.Value |
parseValue(String type,
String value,
String language,
String datatype)
Parse a value out of the elements for a binding.
|
getParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactory
public static final String HEAD
public static final String LINK
public static final String VARS
public static final String BOOLEAN
public static final String RESULTS
public static final String BINDINGS
public static final String TYPE
public static final String VALUE
public static final String XMLLANG
public static final String DATATYPE
public static final String LITERAL
public static final String TYPED_LITERAL
public static final String BNODE
public static final String URI
public SPARQLJSONParserBase()
public SPARQLJSONParserBase(org.openrdf.model.ValueFactory valueFactory)
public void parseQueryResult(InputStream in) throws IOException, org.openrdf.query.resultio.QueryResultParseException, org.openrdf.query.QueryResultHandlerException
IOException
org.openrdf.query.resultio.QueryResultParseException
org.openrdf.query.QueryResultHandlerException
protected boolean parseQueryResultInternal(InputStream in, boolean attemptParseBoolean, boolean attemptParseTuple) throws IOException, org.openrdf.query.resultio.QueryResultParseException, org.openrdf.query.QueryResultHandlerException
IOException
org.openrdf.query.resultio.QueryResultParseException
org.openrdf.query.QueryResultHandlerException
protected org.openrdf.model.Value parseValue(String bindingStr, com.fasterxml.jackson.core.JsonParser jp) throws org.openrdf.query.resultio.QueryResultParseException, com.fasterxml.jackson.core.JsonParseException, IOException
org.openrdf.query.resultio.QueryResultParseException
com.fasterxml.jackson.core.JsonParseException
IOException
protected org.openrdf.model.Value parseValue(String type, String value, String language, String datatype)
type
- LITERAL
, TYPED_LITERAL
, BNODE
or
URI
value
- actual value textlanguage
- language tag, if applicabledatatype
- datatype tag, if applicableCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.