public class SPARQLResultsJSONParser extends SPARQLJSONParserBase implements TupleQueryResultParser
BINDINGS, BNODE, BOOLEAN, DATATYPE, HEAD, LINK, LITERAL, RESULTS, TYPE, TYPED_LITERAL, URI, VALUE, VARS, XMLLANG
handler, valueFactory
Constructor and Description |
---|
SPARQLResultsJSONParser()
Default constructor.
|
SPARQLResultsJSONParser(ValueFactory valueFactory)
Construct a parser with a specific
ValueFactory . |
Modifier and Type | Method and Description |
---|---|
QueryResultFormat |
getQueryResultFormat()
Gets the query result format that this parser can parse.
|
TupleQueryResultFormat |
getTupleQueryResultFormat()
Gets the query result format that this parser can parse.
|
void |
parse(InputStream in)
Deprecated.
|
void |
setTupleQueryResultHandler(TupleQueryResultHandler handler)
Deprecated.
|
parseQueryResult, parseQueryResultInternal
getParserConfig, getSupportedSettings, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfig, getSupportedSettings, parseQueryResult, setParserConfig, setQueryResultHandler, setValueFactory
public SPARQLResultsJSONParser()
public SPARQLResultsJSONParser(ValueFactory valueFactory)
ValueFactory
.valueFactory
- The factory to use to create values.public QueryResultFormat getQueryResultFormat()
QueryResultParser
getQueryResultFormat
in interface QueryResultParser
QueryResultFormat
supported by this parser.public TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParser
getTupleQueryResultFormat
in interface TupleQueryResultParser
@Deprecated public void setTupleQueryResultHandler(TupleQueryResultHandler handler)
TupleQueryResultParser
setTupleQueryResultHandler
in interface TupleQueryResultParser
@Deprecated public void parse(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
TupleQueryResultParser
parse
in interface TupleQueryResultParser
in
- The InputStream from which to read the data.IOException
- If an I/O error occurred while data was read from the InputStream.QueryResultParseException
- If the parser has encountered an unrecoverable parse error.TupleQueryResultHandlerException
- If the configured query result handler has encountered an
unrecoverable error.Copyright © 2001-2016 Aduna. All Rights Reserved.