package rdf

  1. Overview
  2. Docs
val dbg : ?loc:string -> ?level:int -> (unit -> string) -> unit
module Triples : sig ... end
type t = {
  1. g_name : Rdf_uri.uri;
  2. mutable g_set_sub : Triples.t;
  3. mutable g_set_pred : Triples.t;
  4. mutable g_set_obj : Triples.t;
  5. mutable g_in_transaction : t option;
}
type error = string
exception Error of error
val string_of_error : 'a -> 'a
val open_graph : ?options:'a list -> Rdf_uri.uri -> t
val add_triple : t -> sub:Triples.Map.key -> pred:Triples.Map.key -> obj:Triples.Set.elt -> unit
val rem_triple : t -> sub:Triples.Map.key -> pred:Triples.Map.key -> obj:Triples.Set.elt -> unit
val subjects_of : t -> pred:Triples.Map.key -> obj:Triples.Map.key -> Triples.Set.elt list
val predicates_of : t -> sub:Triples.Map.key -> obj:Triples.Set.elt -> Triples.Map.key list
val objects_of : t -> sub:Triples.Map.key -> pred:Triples.Map.key -> Triples.Set.elt list
val exists : ?sub:Triples.Map.key -> ?pred:Triples.Map.key -> ?obj:Triples.Map.key -> t -> bool
val subjects : t -> Triples.Map.key list
val predicates : t -> Triples.Map.key list
val objects : t -> Triples.Map.key list
val transaction_start : t -> unit
val transaction_commit : t -> unit
val transaction_rollback : t -> unit
val new_blank_id : t -> Rdf_node.blank_id
module Mem : sig ... end
OCaml

Innovation. Community. Security.