package activitypub

  1. Overview
  2. Docs

A module with convenient function to query an object_'s graph.

module G = Rdf.Graph
val iri_obj_option : G.graph -> Rdf.Term.term -> Iri.t -> Iri.t option
val first_iri_obj : G.graph -> Rdf.Term.term -> Iri.t -> Iri.t
val first_int_obj : G.graph -> Rdf.Term.term -> Iri.t -> int option
val lit_is_string : Rdf.Term.literal -> bool
val lit_is_string_nolang : Rdf.Term.literal -> bool
val lit_is_datetime : Rdf.Term.literal -> bool
val first_string_obj : G.graph -> Rdf.Term.term -> Iri.t -> string option
val first_string_nolang_obj : G.graph -> Rdf.Term.term -> Iri.t -> string option
val lit_is_bool : Rdf.Term.literal -> bool
val first_bool_obj : G.graph -> Rdf.Term.term -> Iri.t -> bool option
val first_ct_obj : G.graph -> Rdf.Term.term -> Iri.t -> Ldp.Ct.mime option
val first_datetime_obj : G.graph -> Rdf.Term.term -> Iri.t -> Rdf.Term.datetime option
val string_list_obj : G.graph -> Rdf.Term.term -> Iri.t -> string list
val term_is_id : Rdf.Term.term -> bool
val string_lang_map_obj : G.graph -> Rdf.Term.term -> Iri.t -> string Smap.t
OCaml

Innovation. Community. Security.