Class SPARQLResultsXMLParser
- java.lang.Object
-
- org.eclipse.rdf4j.query.resultio.AbstractQueryResultParser
-
- org.eclipse.rdf4j.query.resultio.sparqlxml.AbstractSPARQLXMLParser
-
- org.eclipse.rdf4j.query.resultio.sparqlxml.SPARQLResultsXMLParser
-
- All Implemented Interfaces:
QueryResultParser,TupleQueryResultParser,ErrorHandler
- Direct Known Subclasses:
SPARQLStarResultsXMLParser
public class SPARQLResultsXMLParser extends AbstractSPARQLXMLParser implements TupleQueryResultParser
Parser for reading tuple query results formatted as SPARQL Results Documents. See SPARQL Query Results XML Format for the definition of this format. The parser assumes that the XML is wellformed.
-
-
Field Summary
-
Fields inherited from class org.eclipse.rdf4j.query.resultio.AbstractQueryResultParser
handler, valueFactory
-
-
Constructor Summary
Constructors Constructor Description SPARQLResultsXMLParser()Creates a new parser for the SPARQL Query Results XML Format that will use an instance ofSimpleValueFactoryto create Value objects.SPARQLResultsXMLParser(org.eclipse.rdf4j.model.ValueFactory valueFactory)Creates a new parser for the SPARQL Query Results XML Format that will use the supplied ValueFactory to create Value objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description QueryResultFormatgetQueryResultFormat()TupleQueryResultFormatgetTupleQueryResultFormat()voidparse(InputStream in)Deprecated.voidparseQueryResult(InputStream in)voidsetTupleQueryResultHandler(TupleQueryResultHandler handler)-
Methods inherited from class org.eclipse.rdf4j.query.resultio.sparqlxml.AbstractSPARQLXMLParser
error, fatalError, getCompulsoryXmlFeatureSettings, getCompulsoryXmlPropertySettings, getOptionalXmlFeatureSettings, getOptionalXmlPropertySettings, getSupportedSettings, parseQueryResultInternal, reportWarning, warning
-
Methods inherited from class org.eclipse.rdf4j.query.resultio.AbstractQueryResultParser
getParseErrorListener, getParseLocationListener, getParserConfig, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.query.resultio.QueryResultParser
getParserConfig, getSupportedSettings, set, setParseErrorListener, setParseLocationListener, setParserConfig, setQueryResultHandler, setValueFactory
-
-
-
-
Constructor Detail
-
SPARQLResultsXMLParser
public SPARQLResultsXMLParser()
Creates a new parser for the SPARQL Query Results XML Format that will use an instance ofSimpleValueFactoryto create Value objects.
-
SPARQLResultsXMLParser
public SPARQLResultsXMLParser(org.eclipse.rdf4j.model.ValueFactory valueFactory)
Creates a new parser for the SPARQL Query Results XML Format that will use the supplied ValueFactory to create Value objects.
-
-
Method Detail
-
getTupleQueryResultFormat
public TupleQueryResultFormat getTupleQueryResultFormat()
- Specified by:
getTupleQueryResultFormatin interfaceTupleQueryResultParser
-
getQueryResultFormat
public QueryResultFormat getQueryResultFormat()
- Specified by:
getQueryResultFormatin interfaceQueryResultParser
-
setTupleQueryResultHandler
public void setTupleQueryResultHandler(TupleQueryResultHandler handler)
- Specified by:
setTupleQueryResultHandlerin interfaceTupleQueryResultParser
-
parseQueryResult
public void parseQueryResult(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
- Specified by:
parseQueryResultin interfaceQueryResultParser- Overrides:
parseQueryResultin classAbstractSPARQLXMLParser- Throws:
IOExceptionQueryResultParseExceptionTupleQueryResultHandlerException
-
parse
@Deprecated public void parse(InputStream in) throws IOException, QueryResultParseException, TupleQueryResultHandlerException
Deprecated.- Specified by:
parsein interfaceTupleQueryResultParser- Throws:
IOExceptionQueryResultParseExceptionTupleQueryResultHandlerException
-
-