rdf

OCaml library to manipulate RDF graphs; implements SPARQL
IN THIS PACKAGE
Module Rdf . Sparql_protocol
type in_dataset = {
inds_default : Iri.t option;
inds_named : Iri.t list;
}
val empty_dataset : in_dataset
type in_message = {
in_query : string;
in_dataset : in_dataset;
}
type error =
| Malformed_query of string
| Query_request_refused of string
| Error_other of string
type out_message =
| Ok(*

This is for queries not returning results; by now the Sparql protocol does not specify such queries, but it can be useful for example for 4store, which allows to post updates.

*)
| Result of Sparql.query_result
| Error of error
val string_of_error : error -> string