eu.larkc.core.data
Interface SPARQLEndpoint

All Known Subinterfaces:
RdfStoreConnection
All Known Implementing Classes:
LocalStoreSPARQLService, RdfStoreConnectionImpl, RemoteSPARQLEndpoint

public interface SPARQLEndpoint

SPARQLEndpoint is interface to SPARQL endpoint. The interface is

Author:
vassil

Method Summary
 DataSet createDataSet(java.util.Collection<org.openrdf.model.URI> defaultGraphs, java.util.Collection<org.openrdf.model.URI> namedGraphs)
          Creates a SPARQL dataset from this endpoint.
 RdfGraph createRdfGraph(org.openrdf.model.URI graph)
          Creates a named graph from this endpoint.
 boolean executeAsk(SPARQLQuery query)
          Executes ASK query.
 SetOfStatements executeConstruct(SPARQLQuery query)
          Executes CONSTRUCT or DESCRIBE query.
 VariableBinding executeSelect(SPARQLQuery query)
          Executes SELECT query.
 

Method Detail

createDataSet

DataSet createDataSet(java.util.Collection<org.openrdf.model.URI> defaultGraphs,
                      java.util.Collection<org.openrdf.model.URI> namedGraphs)
Creates a SPARQL dataset from this endpoint.

Parameters:
defaultGraphs - is list of default graphs
namedGraphs - is a list of named graphs
Returns:
dataset

createRdfGraph

RdfGraph createRdfGraph(org.openrdf.model.URI graph)
Creates a named graph from this endpoint.

Parameters:
graph - is the URI of the named graph
Returns:
named graph

executeAsk

boolean executeAsk(SPARQLQuery query)
Executes ASK query. If the submitted query is not ASK a runtime exception will be generated.

Parameters:
query - is ask query to be executed
Returns:
true or false

executeConstruct

SetOfStatements executeConstruct(SPARQLQuery query)
Executes CONSTRUCT or DESCRIBE query. If the submitted query is not CONSTRUCT or DESCRIBE a runtime exception will be generated.

Parameters:
query - is construct or describe query to be executed
Returns:
set of rdf statements

executeSelect

VariableBinding executeSelect(SPARQLQuery query)
Executes SELECT query. If the submitted query is not SELECT a runtime exception will be generated.

Parameters:
query - is select query to be executed
Returns:
list of solutions