hsparql-0.2.1: A SPARQL query generator and DSL, and a client to query a SPARQL server.

Safe HaskellNone

Database.HSparql.Connection

Synopsis

Documentation

type EndPoint = StringSource

URI of the SPARQL endpoint.

data BindingValue Source

Local representations of incoming XML results.

Constructors

Bound Node

RDF Node (UNode, BNode, LNode)

Unbound

Unbound result value

selectQuery :: EndPoint -> Query SelectQuery -> IO (Maybe [[BindingValue]])Source

Connect to remote EndPoint and find all possible bindings for the Variables in the SelectQuery action.

constructQuery :: forall rdf. RDF rdf => EndPoint -> Query ConstructQuery -> IO rdfSource

Connect to remote EndPoint and construct TriplesGraph from given ConstructQuery action. Provisional implementation.

askQuery :: EndPoint -> Query AskQuery -> IO BoolSource

Connect to remote EndPoint and find all possible bindings for the Variables in the SelectQuery action.

describeQuery :: forall rdf. RDF rdf => EndPoint -> Query DescribeQuery -> IO rdfSource

Connect to remote EndPoint and construct TriplesGraph from given ConstructQuery action. Provisional implementation.