package rdf

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-rdf-0.15.0.tar.gz
md5=5a4584aeef27f92598fe1cbafed9923f
sha512=f14c2577f89a1c80aa3594ed4e91ed4e6f13dfc4bc5e41b6d7ceb84f9c4e587ca2cda0b5e201aa388561f37d43de0a84b6b795db62c3972b640cea88bab7304b

doc/rdf/Rdf/Ttl/index.html

Module Rdf.Ttl

Reading and writing Turtle.

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

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

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

Same as from_string but read from the given file.

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