Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.HSparql.Connection
Synopsis
- type EndPoint = String
- data BindingValue
- selectQuery :: EndPoint -> Query SelectQuery -> IO (Maybe [[BindingValue]])
- constructQuery :: Rdf a => EndPoint -> Query ConstructQuery -> IO (RDF a)
- askQuery :: EndPoint -> Query AskQuery -> IO Bool
- updateQuery :: EndPoint -> Query UpdateQuery -> IO Bool
- describeQuery :: Rdf a => EndPoint -> Query DescribeQuery -> IO (RDF a)
- selectQueryRaw :: EndPoint -> String -> IO (Maybe [[BindingValue]])
- constructQueryRaw :: Rdf a => EndPoint -> String -> IO (RDF a)
- askQueryRaw :: EndPoint -> String -> IO Bool
- updateQueryRaw :: EndPoint -> String -> IO Bool
- describeQueryRaw :: Rdf a => EndPoint -> String -> IO (RDF a)
- structureContent :: XmlSource a => a -> Maybe [[BindingValue]]
Documentation
data BindingValue Source #
Local representations of incoming XML results.
Instances
Show BindingValue Source # | |
Defined in Database.HSparql.Connection Methods showsPrec :: Int -> BindingValue -> ShowS # show :: BindingValue -> String # showList :: [BindingValue] -> ShowS # | |
Eq BindingValue Source # | |
Defined in Database.HSparql.Connection |
submit queries using HSparql DSL
selectQuery :: EndPoint -> Query SelectQuery -> IO (Maybe [[BindingValue]]) Source #
constructQuery :: Rdf a => EndPoint -> Query ConstructQuery -> IO (RDF a) Source #
Connect to remote EndPoint
and construct TriplesGraph
from given
'ConstructQueryRaw action. Provisional implementation.
updateQuery :: EndPoint -> Query UpdateQuery -> IO Bool Source #
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
selectQueryRaw :: EndPoint -> String -> IO (Maybe [[BindingValue]]) Source #
parse query results
structureContent :: XmlSource a => a -> Maybe [[BindingValue]] Source #
Transform the String
result from the HTTP request into a two-dimensional
table storing the bindings for each variable in each row.