package stog_rdf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stog_rdfSource

RDF Plugin. Handle <rdf*> nodes to create and RDF graphs.

module XR = Xtmpl.Rewrite
module X = Xtmpl.Xml
Sourceval module_name : string
Sourceval rc_file : Stog.Types.stog -> string
Sourceval keep_pcdata : XR.tree list -> string
module IMap = Iri.Map
Sourcetype rdf_data = {
  1. out_file : string;
  2. graph_by_doc : Rdf.Graph.graph Stog.Path.Map.t;
  3. namespaces : (Iri.t * string) list option;
  4. loaded_graphs : Rdf.Graph.graph IMap.t;
  5. graph : (Rdf.Graph.graph * Rdf.Xml.global_state) option;
  6. dataset : Rdf.Ds.dataset option;
  7. final_graph : Rdf.Graph.graph option;
}
Sourceval empty_data : rdf_data
Sourcetype source =
  1. | Src_file of string
  2. | Src_iri of Iri.t
  3. | Src_str of string
Sourceval string_of_source : source -> string
Sourceval rdf_iri : string -> Iri.t
Sourceval namespaces : rdf_data -> (Iri.t * string) list
Sourceval add_loaded_graph : rdf_data -> IMap.key -> Rdf.Graph.graph -> rdf_data
Sourceval get_loaded_graph : rdf_data -> IMap.key -> Rdf.Graph.graph
Sourceval load_graph : rdf_data -> ?doc:Stog.Types.doc -> IMap.key -> ?data:string -> (string * string) list -> rdf_data
Sourceval rule_load_graph : string -> Stog.Types.doc Stog.Tmap.key -> (Stog.Types.stog * rdf_data) -> 'a -> ?loc:(Lexing.position * Lexing.position) -> XR.attributes -> XR.tree list -> (Stog.Types.stog * rdf_data) * 'b list
module W = Ocf.Wrapper
Sourceval init : 'a -> (Stog.Types.stog * rdf_data) -> 'b -> Stog.Types.stog * rdf_data
Sourceval build_ns_map : (IMap.key * string) list -> string IMap.t
Sourceval apply_namespaces : Rdf.Xml.SMap.key IMap.t -> Rdf.Xml.tree -> Rdf.Xml.tree
Sourceval set_dataset : rdf_data -> Rdf.Ds.dataset -> rdf_data
Sourceval dataset : ('a * rdf_data) -> ('a * rdf_data) * Rdf.Ds.dataset
Sourceval tag_of_string : string -> string * string
Sourceval get_rdf_resource : (Stog.Types.stog * 'a) -> (Stog.Types.stog * 'a) Stog.Plug.XR.env -> XR.attributes -> (Stog.Types.stog * 'a) * string option
Sourceval merge_cdata : XR.tree list -> XR.tree list
Sourceval atts_to_string : XR.X.attributes -> (X.Name_map.key * string) list
Sourceval map_to_rdf_xml_tree : XR.tree -> Rdf.Xml.tree
Sourceval map_to_xml_tree : Rdf.Xml.tree -> XR.tree
Sourceval prerr_atts : ((string * string) * string) list -> unit
Sourceval parse_prop : (Stog.Types.stog * 'a) -> (Stog.Types.stog * 'a) Stog.Plug.XR.env -> Rdf.Graph.graph -> Iri.t -> XR.attributes -> Rdf.Xml.global_state -> ?loc:(Lexing.position * Lexing.position) -> XR.tree list -> (Stog.Types.stog * 'a) * Rdf.Xml.global_state
Sourceval gather : (Stog.Types.stog * 'a) -> (Stog.Types.stog * 'a) Stog.Plug.XR.env -> Rdf.Graph.graph -> Stog.Types.doc -> Rdf.Xml.global_state -> XR.tree list -> (Stog.Types.stog * 'a) * Rdf.Xml.global_state
Sourceval output_graph : 'a -> (Stog.Types.stog * rdf_data) -> 'b -> Stog.Types.stog * rdf_data
Sourceval rdf_string_of_term : Rdf.Term.term -> string
Sourceval string_of_term : Rdf.Term.term -> string
Sourcetype query_spec = {
  1. query : string;
  2. tmpl : XR.tree list;
  3. separator : XR.tree list;
  4. args : XR.attributes;
}
Sourceval apply_select_sol : 'a -> 'b -> 'c -> XR.tree list -> Rdf.Sparql.solution -> XR.tree list
Sourceval apply_select_sols : 'a -> 'b -> 'c -> query_spec -> Rdf.Sparql.solution list -> XR.tree list
Sourceval read_select_query_from_atts : Stog.Types.stog -> Stog.Types.doc -> ?loc:Xtmpl.Types.loc -> query_spec -> XR.attr_value X.Name_map.t -> Stog.Types.stog * query_spec
Sourceval read_select_query_from_xmls : 'a -> 'b -> query_spec -> XR.tree list -> 'a * query_spec
Sourceval build_select_query : Stog.Types.stog -> Stog.Types.doc -> 'a -> ?loc:Xtmpl.Types.loc -> XR.attr_value X.Name_map.t -> XR.tree list -> Stog.Types.stog * query_spec
Sourceval exec_select : (Stog.Types.stog * rdf_data) -> 'a -> 'b -> query_spec -> (Stog.Types.stog * rdf_data) * XR.tree list
Sourceval fun_rdf_select : Stog.Types.doc Stog.Tmap.key -> (Stog.Types.stog * rdf_data) -> 'a -> ?loc:(Lexing.position * Lexing.position) -> XR.attr_value X.Name_map.t -> XR.tree list -> (Stog.Types.stog * rdf_data) * XR.tree list
Sourceval rules_rdf_select : 'a -> Stog.Types.doc Stog.Tmap.key -> ((string * string) * ((Stog.Types.stog * rdf_data) -> 'b -> ?loc:(Lexing.position * Lexing.position) -> XR.attr_value X.Name_map.t -> XR.tree list -> (Stog.Types.stog * rdf_data) * XR.tree list)) list
Sourceval rules_rdf_load : 'a -> Stog.Types.doc Stog.Tmap.key -> ((string * string) * ((Stog.Types.stog * rdf_data) -> 'b -> ?loc:(Lexing.position * Lexing.position) -> XR.attributes -> XR.tree list -> (Stog.Types.stog * rdf_data) * 'c list)) list
Sourceval level_funs : (string * rdf_data Stog.Engine.level_fun) list
Sourceval default_levels : int list Stog.Types.Str_map.t
Sourceval make_engine : ?levels:(string * int list) list -> unit -> (module Stog.Engine.Module)
OCaml

Innovation. Community. Security.