Package org.eclipse.rdf4j.query.dawg
Class DAWGTestResultSetParser
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
-
- org.eclipse.rdf4j.query.dawg.DAWGTestResultSetParser
-
- All Implemented Interfaces:
RDFHandler
public class DAWGTestResultSetParser extends AbstractRDFHandler
-
-
Field Summary
Fields Modifier and Type Field Description private Modelgraphprivate TupleQueryResultHandlertqrHandlerRDFHandler to report the generated statements to.
-
Constructor Summary
Constructors Constructor Description DAWGTestResultSetParser(TupleQueryResultHandler tqrHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendRDF()Signals the end of the RDF data.private BindinggetBinding(Resource bindingNode)private java.util.List<java.lang.String>getBindingNames(Resource resultSetNode)voidhandleStatement(Statement st)Handles a statement.private voidreportSolution(Resource solutionNode, java.util.List<java.lang.String> bindingNames)voidstartRDF()Signals the start of the RDF data.-
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
handleComment, handleNamespace
-
-
-
-
Field Detail
-
tqrHandler
private final TupleQueryResultHandler tqrHandler
RDFHandler to report the generated statements to.
-
graph
private final Model graph
-
-
Constructor Detail
-
DAWGTestResultSetParser
public DAWGTestResultSetParser(TupleQueryResultHandler tqrHandler)
-
-
Method Detail
-
startRDF
public void startRDF() throws RDFHandlerExceptionDescription copied from interface:RDFHandlerSignals the start of the RDF data. This method is called before any data is reported.- Specified by:
startRDFin interfaceRDFHandler- Overrides:
startRDFin classAbstractRDFHandler- Throws:
RDFHandlerException- If the RDF handler has encountered an unrecoverable error.
-
handleStatement
public void handleStatement(Statement st) throws RDFHandlerException
Description copied from interface:RDFHandlerHandles a statement.- Specified by:
handleStatementin interfaceRDFHandler- Overrides:
handleStatementin classAbstractRDFHandler- Parameters:
st- The statement.- Throws:
RDFHandlerException- If the RDF handler has encountered an unrecoverable error.
-
endRDF
public void endRDF() throws RDFHandlerExceptionDescription copied from interface:RDFHandlerSignals the end of the RDF data. This method is called when all data has been reported.- Specified by:
endRDFin interfaceRDFHandler- Overrides:
endRDFin classAbstractRDFHandler- Throws:
RDFHandlerException- If the RDF handler has encountered an unrecoverable error.
-
getBindingNames
private java.util.List<java.lang.String> getBindingNames(Resource resultSetNode) throws RDFHandlerException
- Throws:
RDFHandlerException
-
reportSolution
private void reportSolution(Resource solutionNode, java.util.List<java.lang.String> bindingNames) throws RDFHandlerException
- Throws:
RDFHandlerException
-
-