package rdf_json_ld

  1. Overview
  2. Docs

Context processing and expansion.

val gen_delim_chars : char list
type term_def = {
  1. iri : T.iri_mapping;
  2. prefix : bool;
  3. protected : bool;
  4. reverse_prop : bool;
  5. base_url : Iri.t option;
  6. local_ctx : Rdf_json_ld.T.J.json option;
  7. container : string list option;
  8. direction : T.direction option option;
  9. index : string option;
  10. lang : string option option;
  11. nest_value : string option;
  12. typ : T.type_mapping option;
}
and ctx = {
  1. defs : term_def T.SMap.t;
  2. base : Iri.t option;
  3. orig_base : Iri.t;
  4. inverse_ctx : ctx option;
  5. vocab : string option;
  6. default_lang : string option;
  7. default_base_direction : T.direction option;
  8. prev_ctx : ctx option;
}
val json_of_term_def : term_def -> Rdf_json_ld.T.J.json
val json_of_ctx : ctx -> Rdf_json_ld.T.J.json
val pp_ctx : Format.formatter -> ctx -> unit
val init_ctx : Iri.t -> ctx
val equal_def_container : String.t list option -> String.t list option -> bool
val def_equal : term_def -> term_def -> bool
val clone_def : term_def -> term_def
val clone_defs : term_def T.SMap.t -> term_def T.SMap.t
val clone_ctx : ctx -> ctx
val to_container_mapping : T.options -> Rdf_json_ld.T.J.json_t Rdf_json_ld.T.J.ranged -> String.t list
val authorized_def_entries : T.SSet.t
val iri_mapping_of_json : string -> Rdf_json_ld.T.J.json_t Rdf_json_ld.T.J.ranged -> [> `Bnode of T.SSet.elt | `Iri of T.SSet.elt | `Keyword of T.SSet.elt ]
val create_term_definition : T.options -> ?protected:bool -> ?override_protected:bool -> ?base_url:Iri.t -> ?remote_ctxs:Rdf_json_ld.T.J.json Iri.Map.t -> ?validate_scoped_ctx:bool -> ctx -> Rdf_json_ld.T.J.map -> T.SMap.key -> bool T.SMap.t -> (ctx * bool T.SMap.t) Lwt.t
val iri_expansion : T.options -> ?document_relative:bool -> ?vocab:bool -> ?local_ctx:Rdf_json_ld.T.J.map -> ?defined:bool T.SMap.t -> ctx -> Rdf_json_ld.T.J.json_t Rdf_json_ld.T.J.ranged -> (ctx * bool T.SMap.t * Rdf_json_ld.T.J.json) Lwt.t
val process_local_ctx : T.options -> override_protected:bool -> propagate:bool -> validate_scoped_ctx:bool -> ctx -> Iri.t -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) -> Rdf_json_ld.T.J.json_t Rdf_json_ld.T.J.ranged -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) Lwt.t
val process_context_entry : T.options -> override_protected:bool -> ctx -> Iri.t -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) -> Rdf_json_ld.T.J.map -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) Lwt.t
val process_ctx_result : T.options -> ?override_protected:bool -> ?propagate:bool -> ?validate_scoped_ctx:bool -> ctx -> Iri.t -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) -> Rdf_json_ld.T.J.json -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) Lwt.t
val process_ctx : T.options -> ?override_protected:bool -> ?propagate:bool -> ?validate_scoped_ctx:bool -> ctx -> Iri.t -> Rdf_json_ld.T.J.json Iri.Map.t -> Rdf_json_ld.T.J.json -> (Rdf_json_ld.T.J.json Iri.Map.t * ctx) Lwt.t
val return_null : Rdf_json_ld.T.J.json Lwt.t
val expand_language : T.options -> ordered:bool -> ctx -> T.SMap.key -> Rdf_json_ld.T.J.map -> Rdf_json_ld.T.J.json Lwt.t
val expand_index_map : T.options -> frame_expansion:bool -> ordered:bool -> ctx -> Iri.t -> string list -> T.SMap.key -> Rdf_json_ld.T.J.map -> Rdf_json_ld.T.J.json Lwt.t
val expansion : T.options -> ?frame_expansion:bool -> ?ordered:bool -> ?from_map:bool -> ctx -> T.SMap.key option -> Rdf_json_ld.T.J.json -> Iri.t -> Rdf_json_ld.T.J.json Lwt.t
val ctx_of_options : T.options -> Iri.t -> ctx Lwt.t
OCaml

Innovation. Community. Security.