public class SPARQLResultsJSONParser extends AbstractSPARQLJSONParser implements TupleQueryResultParser
BINDINGS, BNODE, BOOLEAN, DATATYPE, HEAD, LINK, LITERAL, RESULTS, TYPE, TYPED_LITERAL, URI, VALUE, VARS, XMLLANGhandler, valueFactory| Constructor and Description |
|---|
SPARQLResultsJSONParser()
Default constructor.
|
SPARQLResultsJSONParser(ValueFactory valueFactory)
Construct a parser with a specific
ValueFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkTripleType(com.fasterxml.jackson.core.JsonParser jp,
String type) |
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.
|
protected Triple |
parseTripleValue(com.fasterxml.jackson.core.JsonParser jp,
String fieldName) |
void |
setTupleQueryResultHandler(TupleQueryResultHandler handler)
Deprecated.
|
getSupportedSettings, parseQueryResult, parseQueryResultInternal, parseValuegetParseErrorListener, getParseLocationListener, getParserConfig, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserConfig, getSupportedSettings, parseQueryResult, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactorypublic SPARQLResultsJSONParser()
public SPARQLResultsJSONParser(ValueFactory valueFactory)
ValueFactory.valueFactory - The factory to use to create values.public QueryResultFormat getQueryResultFormat()
QueryResultParsergetQueryResultFormat in interface QueryResultParserQueryResultFormat supported by this parser.public TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParsergetTupleQueryResultFormat in interface TupleQueryResultParser@Deprecated public void setTupleQueryResultHandler(TupleQueryResultHandler handler)
TupleQueryResultParsersetTupleQueryResultHandler in interface TupleQueryResultParser@Deprecated public void parse(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
TupleQueryResultParserparse in interface TupleQueryResultParserin - 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.protected Triple parseTripleValue(com.fasterxml.jackson.core.JsonParser jp, String fieldName) throws IOException
parseTripleValue in class AbstractSPARQLJSONParserIOExceptionprotected boolean checkTripleType(com.fasterxml.jackson.core.JsonParser jp,
String type)
checkTripleType in class AbstractSPARQLJSONParserCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.