eu.larkc.core.query
Class ORDIGraphResult

java.lang.Object
  extended by eu.larkc.core.query.GraphResultBase
      extended by eu.larkc.core.query.ORDIGraphResult
All Implemented Interfaces:
InformationSet, SetOfStatements, java.io.Serializable, org.openrdf.query.TupleQueryResultHandler

public class ORDIGraphResult
extends GraphResultBase
implements org.openrdf.query.TupleQueryResultHandler

ORDIGraphResult implements asynchronous RDF statement result reading from in-memory Sesame-compatible SPARQL endpoint.

Author:
vassil
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class eu.larkc.core.query.GraphResultBase
GraphResultBase.BlockingQueueIterator, GraphResultBase.FinalStatement
 
Constructor Summary
ORDIGraphResult()
           
 
Method Summary
 void close()
           
 void endQueryResult()
           
 void handleSolution(org.openrdf.query.BindingSet bindingset)
           
 void startQueryResult(java.util.List<java.lang.String> list)
           
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class eu.larkc.core.query.GraphResultBase
getStatements
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORDIGraphResult

public ORDIGraphResult()
Method Detail

startQueryResult

public void startQueryResult(java.util.List<java.lang.String> list)
Specified by:
startQueryResult in interface org.openrdf.query.TupleQueryResultHandler

endQueryResult

public void endQueryResult()
Specified by:
endQueryResult in interface org.openrdf.query.TupleQueryResultHandler

handleSolution

public void handleSolution(org.openrdf.query.BindingSet bindingset)
                    throws org.openrdf.query.TupleQueryResultHandlerException
Specified by:
handleSolution in interface org.openrdf.query.TupleQueryResultHandler
Throws:
org.openrdf.query.TupleQueryResultHandlerException

close

public void close()
Overrides:
close in class GraphResultBase

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: InformationSet
Serializes this object to SetOfStatements.

Specified by:
toRDF in interface InformationSet
Parameters:
data - is stream to serialize this object to.
Returns:
reference to the set of statements that contains the serialized data.