public abstract class AbstractSPARQLJSONParser extends AbstractQueryResultParser
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 |
handler, valueFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractSPARQLJSONParser() |
protected |
AbstractSPARQLJSONParser(ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkTripleType(com.fasterxml.jackson.core.JsonParser jp,
String type) |
Collection<RioSetting<?>> |
getSupportedSettings() |
void |
parseQueryResult(InputStream in)
Parse the query results out of the given
InputStream into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler) . |
protected boolean |
parseQueryResultInternal(InputStream in,
boolean attemptParseBoolean,
boolean attemptParseTuple) |
protected Triple |
parseTripleValue(com.fasterxml.jackson.core.JsonParser jp,
String fieldName) |
protected Value |
parseValue(com.fasterxml.jackson.core.JsonParser jp,
String bindingStr) |
getParseErrorListener, getParseLocationListener, getParserConfig, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryResultFormat
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
protected AbstractSPARQLJSONParser()
protected AbstractSPARQLJSONParser(ValueFactory valueFactory)
public void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, QueryResultHandlerException
QueryResultParser
InputStream
into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler)
.in
- The InputStream
to parse the results from.IOException
- If there is an exception from the InputStream.QueryResultParseException
- If the query results are not parsable by this parser.QueryResultHandlerException
- If the QueryResultHandler
set in
QueryResultParser.setQueryResultHandler(QueryResultHandler)
throws an exception.protected boolean parseQueryResultInternal(InputStream in, boolean attemptParseBoolean, boolean attemptParseTuple) throws IOException, QueryResultParseException, QueryResultHandlerException
protected Value parseValue(com.fasterxml.jackson.core.JsonParser jp, String bindingStr) throws IOException
IOException
protected Triple parseTripleValue(com.fasterxml.jackson.core.JsonParser jp, String fieldName) throws IOException
IOException
protected boolean checkTripleType(com.fasterxml.jackson.core.JsonParser jp, String type)
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings
in interface QueryResultParser
getSupportedSettings
in class AbstractQueryResultParser
RioSetting
s that are supported by this QueryResultParser.Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.