hsparql-0.3.7: A SPARQL query generator and DSL, and a client to query a SPARQL server.
Safe HaskellNone
LanguageHaskell2010

Database.HSparql.Connection

Synopsis

Documentation

type EndPoint = String Source #

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

Instances

Instances details
Eq BindingValue Source # 
Instance details

Defined in Database.HSparql.Connection

Show BindingValue Source # 
Instance details

Defined in Database.HSparql.Connection

submit queries using HSparql DSL

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

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

constructQuery :: Rdf a => EndPoint -> Query ConstructQuery -> IO (RDF a) Source #

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

askQuery :: EndPoint -> Query AskQuery -> IO Bool Source #

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

updateQuery :: EndPoint -> Query UpdateQuery -> IO Bool Source #

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

describeQuery :: Rdf a => EndPoint -> Query DescribeQuery -> IO (RDF a) Source #

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

submit queries using raw SPARQL strings