package rdf

  1. Overview
  2. Docs
exception Invalid_rdf of string
module SMap : sig ... end
type tree =
  1. | E of Xmlm.tag * tree list
  2. | D of string
type state = {
  1. subject : Rdf_node.node option;
  2. predicate : Rdf_uri.uri option;
  3. xml_base : Rdf_uri.uri;
  4. xml_lang : string option;
  5. datatype : Rdf_uri.uri option;
  6. namespaces : string Rdf_uri.Urimap.t;
}
type global_state = {
  1. blanks : Rdf_node.blank_id SMap.t;
  2. gnamespaces : string Rdf_uri.Urimap.t;
}
val input_node : Rdf_graph.graph -> state -> global_state -> tree -> global_state
val input_prop : Rdf_graph.graph -> state -> (global_state * int) -> tree -> global_state * int
val from_string : Rdf_graph.graph -> base:Rdf_uri.uri -> string -> unit
val from_file : Rdf_graph.graph -> base:Rdf_uri.uri -> string -> unit
val to_string : ?namespaces:(Rdf_uri.uri * string) list -> Rdf_graph.graph -> string
val to_file : ?namespaces:(Rdf_uri.uri * string) list -> Rdf_graph.graph -> string -> unit