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, setValueFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryResultFormatpublic 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
QueryResultParserInputStream 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
IOExceptionprotected Triple parseTripleValue(com.fasterxml.jackson.core.JsonParser jp, String fieldName) throws IOException
IOExceptionprotected boolean checkTripleType(com.fasterxml.jackson.core.JsonParser jp,
String type)
public Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultParsergetSupportedSettings in class AbstractQueryResultParserRioSettings that are supported by this QueryResultParser.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.