Liking cljdoc? Tell your friends :D

com.yetanalytics.flint.axiom.impl.format


format-bnode-symbolclj/s

(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.
sourceraw docstring

format-lang-map-literalclj/s

(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`.
sourceraw docstring

format-lang-map-tagclj/s

(format-lang-map-tag lang-map)

Return the lang tag string from lang-map.

Return the lang tag string from `lang-map`.
sourceraw docstring

format-lang-map-valclj/s

(format-lang-map-val lang-map)

Return the string literal value from lang-map.

Return the string literal value from `lang-map`.
sourceraw docstring

format-literalclj/s

(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`.
sourceraw docstring

format-prefix-iri-keywordclj/s

(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`.
sourceraw docstring

format-prefix-keywordclj/s

(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 `:$`.
sourceraw docstring

format-rdf-iriclj/s

(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.
sourceraw docstring

format-var-symbolclj/s

(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`.
sourceraw docstring

format-xsd-iriclj/s

(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.
sourceraw docstring

unwrap-iri-stringclj/s

(unwrap-iri-string s)

Given a string s of the form <iri>, return iri.

Given a string `s` of the form `<iri>`, return `iri`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close