public abstract class SPARQLJSONParserBase extends QueryResultParserBase
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
Constructor and Description |
---|
SPARQLJSONParserBase() |
SPARQLJSONParserBase(ValueFactory valueFactory) |
Modifier and Type | Method and Description |
---|---|
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) |
getParserConfig, getSupportedSettings, 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
public SPARQLJSONParserBase()
public SPARQLJSONParserBase(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
Copyright © 2001-2016 Aduna. All Rights Reserved.