package rdf

  1. Overview
  2. Docs
OCaml library to manipulate RDF graphs; implements SPARQL

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-rdf-1.1.0.tar.bz2
md5=fdca8ab06da34d9d76fe273f654ec6a1
sha512=fff3ad6cb5978e43ac3c509cc25a01d16be6e21b04df607e0595ec0e7226ba7b6e4e2ec86bbeae4aa3d6a181fa399c7c00a4b1c788ddc98486f5c8badf8867f7

doc/rdf/Rdf/Ttl/index.html

Module Rdf.TtlSource

Reading and writing Turtle.

Sourcetype error =
  1. | Parse_error of Loc.loc * string
  2. | Unknown_namespace of string
Sourceexception Error of error
Sourceval string_of_error : error -> string
Sourceval from_string : Graph.graph -> ?base:Iri.t -> string -> unit

Input graph from string. Default base is the graph name.

Sourceval from_file : Graph.graph -> ?base:Iri.t -> string -> unit

Same as from_string but read from the given file.

Sourceval string_of_term : Term.term -> string
Sourceval string_of_triple : sub:Term.term -> pred:Iri.t -> obj:Term.term -> string
Sourceval to_ : ?compact:bool -> ?namespaces:(Iri.t * string) list -> (string -> unit) -> Graph.graph -> unit
Sourceval to_string : ?compact:bool -> ?namespaces:(Iri.t * string) list -> Graph.graph -> string
Sourceval to_file : ?compact:bool -> ?namespaces:(Iri.t * string) list -> Graph.graph -> string -> unit
OCaml

Innovation. Community. Security.