package rdf
Install
Dune Dependency
Authors
Maintainers
Sources
md5=98a004fb30bb175b9b50cbe99f48f15e
sha512=ffc1a0e67683773294d73d0dfa6aa32a046e5bcdc54c9879c16fd375a0d8269048a5600f91dd9af7af981214d1704fb86ce8713cfeba042d11ebae5457ed2ee5
doc/rdf/Rdf/Term/index.html
Module Rdf.Term
Source
RDF terms.
Literal terms contain a value, an optional language and an optional data type IRI.
Type for blank node ids.
Various kinds of terms.
Create a datetime literal with type iri from the given datetime d
. If no date is given, now
()
is used.
Create a literal term from the given datetime. (see mk_literal_datetime
).
Create a boolean literal with type iri from the given boolean.
Create an integer literal. Default typ
is Rdf.xsd_integer
.
Shortcut for Literal (mk_literal ?typ ?lang string)
Shortcut for Literal (mk_literal ~typ: Rdf.xsd_double float)
Create a literal term from the given boolean. (see mk_literal_bool
).
quote_str str
returns the given string str
between quotes, with correct literal string escapes.
Create a string from the given RDF literal, using turtle syntax.
Create a string for the given term, using RDF turtle syntax conventions.
term_hash term
returns an int64 identifiying (hopefully unically)) a given term.