rdf

OCaml library to manipulate RDF graphs; implements SPARQL
Library rdf
Module Rdf . Ttl_types
module SMap = Xml.SMap
type context = {
base : Iri.t;
prefixes : Iri.t SMap.t;
gstate : Xml.global_state;
}
type iriref = string
type directive =
| Prefix of string * iriref
| Base of iriref
type qname = string option * string option
type iri =
| Iriref of iriref
| Qname of qname
type language = string
type literal =
| String of string * language option * iri option
type object_ =
| Obj_iri of iri
| Obj_blank of blank
| Obj_literal of literal
and blank =
| NodeId of string
| Empty
| PredObjs of predobj list
| Collection of object_ list
and pred =
| Pred_iri of iri
| Pred_a
and predobj = pred * object_ list
type subject =
| Sub_iri of iri
| Sub_blank of blank
type statement =
| Directive of directive
| Triples of subject * predobj list
type turtle = statement list