package activitypub

  1. Overview
  2. Docs

Module Activitypub.UtilsSource

Utilities

Sourcetype E.error +=
  1. | Time_error of string
Sourceval sha256 : string -> string
Sourceval mkdir : string -> unit Lwt.t
Sourceval dir_exists : string -> bool Lwt.t
Sourceval graph_keep_only_from : ?keep:(Iri.t -> bool) -> Rdf.Graph.graph -> Rdf.Term.term -> Rdf.Graph.graph

graph_keep_only_from ?keep g term returns a new graph with the same name as g, keeping only triples reachable from term, and only following blank nodes or IRIs when keep iri returns true, i.e. when an IRI is encountered, we do not add triples with this IRI as subject if keep iri returns false. Default keep always return false.

Sourceval filename_wrapper : string Ocf.Wrapper.t
Sourceval iri_wrapper : Iri.t Ocf.Wrapper.t
Sourceval mime_wrapper : Ldp.Ct.mime Ocf.Wrapper.t
Sourceval ptime_wrapper : Ptime.t Ocf.Wrapper.t
Sourceval is_prefix_iri : Iri.t -> Iri.t -> bool
Sourceval static_mime : string -> Ldp.Ct.mime
Sourceval mime_xhtml : Ldp.Ct.mime
Sourceval mime_nquads : Ldp.Ct.mime
Sourceval mime_jsonld : Ldp.Ct.mime
Sourceval mime_ap : Ldp.Ct.mime
Sourceval mime_jrd_json : Ldp.Ct.mime
Sourceval jsonld_document_loader : (?headers:Cohttp.Header.t -> Iri.t -> (string, exn) result Lwt.t) -> Iri.Map.key -> (string, exn) result Lwt.t
Sourceval location_header : Ldp.Types.meta -> string option
Sourceval list_slice : start:int -> stop:int -> 'a list -> 'a list
Sourceval log_level_wrapper : Logs.level option Ocf.Wrapper.t
Sourceval to_ptime : float -> Ptime.t
Sourceval ptime_now : unit -> Ptime.t
Sourceval ptime_to_utc_string : Ptime.t -> string
OCaml

Innovation. Community. Security.