package rdf

  1. Overview
  2. Docs
module T = Rdf_sparql_types
type error =
  1. | Variable_already_defined of Rdf_sparql_types.var
  2. | Unknown_prefix of Rdf_sparql_types.pname_ns
exception Error of error
val error : error -> 'a
val string_of_error : error -> string
exception Implicit_aggregate_found
type path =
  1. | Var of Rdf_sparql_types.var
  2. | Iri of Rdf_sparql_types.iriref
  3. | Inv of path
  4. | Alt of path * path
  5. | Seq of path * path
  6. | ZeroOrMore of path
  7. | OneOrMore of path
  8. | ZeroOrOne of path
  9. | NPS of Rdf_sparql_types.iriref list
type algebra =
  1. | BGP of triple list
  2. | Join of algebra * algebra
  3. | LeftJoin of algebra * algebra * filter list
  4. | Filter of algebra * filter list
  5. | Union of algebra * algebra
  6. | Graph of Rdf_sparql_types.var_or_iri * algebra
  7. | Extend of algebra * Rdf_sparql_types.var * Rdf_sparql_types.expression
  8. | Minus of algebra * algebra
  9. | ToMultiset of algebra
  10. | DataToMultiset of Rdf_sparql_types.datablock
  11. | Group of Rdf_sparql_types.group_condition list * algebra
  12. | Aggregation of Rdf_sparql_types.aggregate
  13. | AggregateJoin of algebra * algebra list
  14. | Project of algebra * VS.t
  15. | Distinct of algebra
  16. | Reduced of algebra
  17. | Slice of algebra * int option * int option
  18. | OrderBy of algebra * Rdf_sparql_types.order_condition list
val visible_vars : query -> VS.t
val fresh_var : unit -> Rdf_sparql_types.var
val path_iri_first : path
val path_iri_rest : path
val iri_nil : T.iri
val iriref_type : Rdf_sparql_types.iriref
val path_iri_type : path
val translate_path : Rdf_sparql_types.path -> path
val translate_path_sequence : Rdf_sparql_types.path_sequence -> path
val translate_path_elt_or_inverse : T.path_elt_or_inverse -> path
val translate_path_elt : T.path_elt -> path
val translate_path_primary : Rdf_sparql_types.path_primary -> path
val partition_path_one_in_prop_set : Rdf_sparql_types.path_one_in_prop_set list -> Rdf_sparql_types.iriref list * Rdf_sparql_types.iriref list
val translate_property_path_pattern : (T.var_or_term * path * T.var_or_term) list -> (T.var_or_term * path * T.var_or_term) -> (T.var_or_term * path * T.var_or_term) list
val translate_property_path_patterns : (T.var_or_term * path * T.var_or_term) list -> (T.var_or_term * path * T.var_or_term) list
val build_triples_path : T.var_or_term -> (T.var_or_term * path * T.var_or_term) list -> T.prop_object_list -> (T.var_or_term * path * T.var_or_term) list
val build_triples_prop_graph_node : T.var_or_term -> path -> (T.var_or_term * path * T.var_or_term) list -> Rdf_sparql_types.object_ -> (T.var_or_term * path * T.var_or_term) list
val build_triples_path_collection : (T.var_or_term * path * T.var_or_term) list -> T.var_or_term -> Rdf_sparql_types.object_ list -> (T.var_or_term * path * T.var_or_term) list
val translate_triples_same_subject_path : (T.var_or_term * path * T.var_or_term) list -> T.triples_same_subject -> (T.var_or_term * path * T.var_or_term) list
val translate_ggp : T.group_graph_pattern -> algebra
val translate_subselect : Rdf_sparql_types.sub_select -> algebra
val translate_ggp_sub : Rdf_sparql_types.ggp_sub -> algebra
val translate_triples_block : T.triples_block -> algebra
val translate_union : T.group_graph_pattern list -> algebra
val translate_service : T.service_graph_pattern -> algebra
val translate_inline_data : T.datablock -> algebra
val has_implicit_grouping : query -> bool
val translate_query_level : query -> algebra
val p : Buffer.t -> string -> unit
val string_of_var : Rdf_sparql_types.var -> string
val string_of_var_or_term : Rdf_sparql_types.var_or_term -> string
val string_of_path : path -> string
val string_of_triple : (Rdf_sparql_types.var_or_term * path * Rdf_sparql_types.var_or_term) -> string
val print_triple : string -> Buffer.t -> (Rdf_sparql_types.var_or_term * path * Rdf_sparql_types.var_or_term) -> unit
val print_triples : string -> Buffer.t -> (Rdf_sparql_types.var_or_term * path * Rdf_sparql_types.var_or_term) list -> unit
val print_expr : Buffer.t -> Rdf_sparql_types.expression -> unit
val print_group_condition : Buffer.t -> Rdf_sparql_types.group_condition -> unit
val print : string -> Buffer.t -> algebra -> unit
val string_of_algebra : algebra -> string
OCaml

Innovation. Community. Security.