eu.larkc.core.data.util
Class SPARQLQueryExecutor

java.lang.Object
  extended by eu.larkc.core.data.util.SPARQLQueryExecutor

public class SPARQLQueryExecutor
extends java.lang.Object

SPARQLQueryExecutor is an utility class to execute SPARQL queries over arbitrary RDF data. SPARQL queries could be executed against remote or local RDF data types. Please note that some of the RDF data merges could be IO and computationally expensive operations and should be performed with care.

Author:
vassil

Constructor Summary
SPARQLQueryExecutor()
           
 
Method Summary
 boolean executeAsk(SPARQLQuery query, SetOfStatements rdf)
          Executes SPARQL ASK query against arbitrary RDF data type.
 SetOfStatements executeConstruct(SPARQLQuery query, SetOfStatements rdf)
          Executes SPARQL CONSTRUCT or DESCRIBE query against arbitrary RDF data type.
 VariableBinding executeSelect(SPARQLQuery query, SetOfStatements rdf)
          Executes SPARQL SELECT query against arbitrary RDF data type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLQueryExecutor

public SPARQLQueryExecutor()
Method Detail

executeAsk

public boolean executeAsk(SPARQLQuery query,
                          SetOfStatements rdf)
Executes SPARQL ASK query against arbitrary RDF data type.

Parameters:
query - is query to be executed
rdf - is RDF data to be executed against
Returns:
SPARQL result

executeConstruct

public SetOfStatements executeConstruct(SPARQLQuery query,
                                        SetOfStatements rdf)
Executes SPARQL CONSTRUCT or DESCRIBE query against arbitrary RDF data type.

Parameters:
query - is query to be executed
rdf - is RDF data to be executed against
Returns:
SPARQL result

executeSelect

public VariableBinding executeSelect(SPARQLQuery query,
                                     SetOfStatements rdf)
Executes SPARQL SELECT query against arbitrary RDF data type.

Parameters:
query - is query to be executed
rdf - is RDF data to be executed against
Returns:
SPARQL result