(format-bnode-symbol b-sym)Return the bnode b-sym as a string of the form _:bnode. Returns
[] if b-sym is a single underscore.
Return the bnode `b-sym` as a string of the form `_:bnode`. Returns `[]` if `b-sym` is a single underscore.
(format-lang-map-literal lang-map)Format lang-map into a string of the form "value"@lang-tag.
Format `lang-map` into a string of the form `"value"@lang-tag`.
(format-lang-map-tag lang-map)Return the lang tag string from lang-map.
Return the lang tag string from `lang-map`.
(format-lang-map-val lang-map)Return the string literal value from lang-map.
Return the string literal value from `lang-map`.
(format-literal literal {:keys [force-iri? _iri-prefix-m] :as opts})Create a literal of the form "strval^^iri". If force-iri? is true
then the datatype IRI will be appended, and iri-prefix-m will map any
IRI string prefix to a keyword prefix. literal should extend
p/Literal and as such implement p/-format-literal-strval and
p/-format-literal-url.
Create a literal of the form `"strval^^iri"`. If `force-iri?` is `true` then the datatype IRI will be appended, and `iri-prefix-m` will map any IRI string prefix to a keyword prefix. `literal` should extend `p/Literal` and as such implement `p/-format-literal-strval` and `p/-format-literal-url`.
(format-prefix-iri-keyword k)Given a potentially-qualified keyword k, return a prefixed IRI in the
form prefix:name.
Given a potentially-qualified keyword `k`, return a prefixed IRI in the form `prefix:name`.
(format-prefix-keyword k)Return the string of the keyword k, or the empty string if k is :$.
Return the string of the keyword `k`, or the empty string if `k` is `:$`.
(format-rdf-iri rdf-suffix {:keys [iri-prefix-m]})Similar to format-xsd-iri, but for the RDF datatype IRI.
Similar to `format-xsd-iri`, but for the RDF datatype IRI.
(format-var-symbol v-sym)Return the var v-sym as a string of the form ?var.
Return the var `v-sym` as a string of the form `?var`.
(format-xsd-iri xsd-suffix {:keys [iri-prefix-m]})Create an XSD datatype IRI of the form (str xsd-prefix xsd-suffix),
where xsd-suffix should be a string like "boolean" or "dateTime".
If iri-prefix-m is provided, it will use the prefix associated with
the XSD IRI prefix.
Create an XSD datatype IRI of the form `(str xsd-prefix xsd-suffix)`, where `xsd-suffix` should be a string like `"boolean"` or `"dateTime"`. If `iri-prefix-m` is provided, it will use the prefix associated with the XSD IRI prefix.
(unwrap-iri-string s)Given a string s of the form <iri>, return iri.
Given a string `s` of the form `<iri>`, return `iri`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |