Safe Haskell | None |
---|---|
Language | Haskell2010 |
SPARQL 1.1 Protocol client.
All queries are sent using direct POSTs as described in sections 2.1.3 and 2.2.2 of the specification. The results are retrieved in JSON format, as described in the SPARQL 1.1 Query Results JSON Format.
Known limitations and caveats:
default-graph-uri
andnamed-graph-uri
parameters are not supported.- Queries are not validated for correctness.
- select :: String -> ByteString -> IO (Response SelectResult)
- ask :: String -> ByteString -> IO (Response AskResult)
- construct :: String -> ByteString -> IO (Response RDFGraph)
- describe :: String -> ByteString -> IO (Response RDFGraph)
- update :: String -> ByteString -> IO (Response ())
- data RDFTerm
- newtype AskResult = AskResult Bool
- newtype SelectResult = SelectResult [Map Text RDFTerm]
Documentation
:: String | The URL of the server to run the query against. |
-> ByteString | An SPARQL SELECT query. It's sent as-is to the server. |
-> IO (Response SelectResult) | The result of the query. |
Runs an SPARQL SELECT query.
:: String | The URL of the server to run the query against. |
-> ByteString | An SPARQL ASK query. It's sent as-is to the server. |
-> IO (Response AskResult) | The result of the query. |
Runs an SPARQL ASK query.
:: String | The URL of the server to run the query against. |
-> ByteString | An SPARQL CONSTRUCT query. It's sent as-is to the server. |
-> IO (Response RDFGraph) | The result of the query. |
Runs an SPARQL CONSTRUCT query.
:: String | The URL of the server to run the query against. |
-> ByteString | The URI of the resource to describe. |
-> IO (Response RDFGraph) | The result of the query. |
Runs an SPARQL DESCRIBE query.
:: String | The URL of the server to run the query against. |
-> ByteString | An SPARQL update query. It's sent as-is to the server. |
-> IO (Response ()) | The result of the query. |
Runs an SPARQL update (INSERT/DELETE) query.
Structure of an RDF term, according to section 3.2.2 of the SPARQL 1.1 Query Results JSON Format specification.
The boolean result of an ASK query.
newtype SelectResult Source #
The bindings of SELECT queries.