public class SPARQLResultsXMLParser extends AbstractSPARQLXMLParser implements TupleQueryResultParser
handler, valueFactory
Constructor and Description |
---|
SPARQLResultsXMLParser()
Creates a new parser for the SPARQL Query Results XML Format that will use an instance of
SimpleValueFactory to create Value objects. |
SPARQLResultsXMLParser(ValueFactory valueFactory)
Creates a new parser for the SPARQL Query Results XML Format that will use the supplied ValueFactory to create
Value objects.
|
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 |
parseQueryResult(InputStream in)
Parse the query results out of the given
InputStream into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler) . |
void |
setTupleQueryResultHandler(TupleQueryResultHandler handler)
Sets the TupleQueryResultHandler that will handle the parsed query result data.
|
error, fatalError, getCompulsoryXmlFeatureSettings, getCompulsoryXmlPropertySettings, getOptionalXmlFeatureSettings, getOptionalXmlPropertySettings, getSupportedSettings, parseQueryResultInternal, reportWarning, warning
getParseErrorListener, getParseLocationListener, getParserConfig, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParserConfig, getSupportedSettings, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
public SPARQLResultsXMLParser()
SimpleValueFactory
to create Value objects.public SPARQLResultsXMLParser(ValueFactory valueFactory)
public TupleQueryResultFormat getTupleQueryResultFormat()
TupleQueryResultParser
getTupleQueryResultFormat
in interface TupleQueryResultParser
public QueryResultFormat getQueryResultFormat()
QueryResultParser
getQueryResultFormat
in interface QueryResultParser
QueryResultFormat
supported by this parser.public void setTupleQueryResultHandler(TupleQueryResultHandler handler)
TupleQueryResultParser
setTupleQueryResultHandler
in interface TupleQueryResultParser
public void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
QueryResultParser
InputStream
into the handler setup using
QueryResultParser.setQueryResultHandler(QueryResultHandler)
.parseQueryResult
in interface QueryResultParser
parseQueryResult
in class AbstractSPARQLXMLParser
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.TupleQueryResultHandlerException
@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 © 2015-2020 Eclipse Foundation. All Rights Reserved.