RDF datatypes
RDF datatypes
(as-str u)
Returns the string form of an IRI, not the serialization form. This means that the raw IRI is returned, and not an abbreviated form, nor is it wrapped in angle brackets.
Returns the string form of an IRI, not the serialization form. This means that the raw IRI is returned, and not an abbreviated form, nor is it wrapped in angle brackets.
(blank-node)
(blank-node label)
Create a blank node, using an optional label. The same label will always return the same blank node.
Create a blank node, using an optional label. The same label will always return the same blank node.
Common prefixes used in many datasets
Common prefixes used in many datasets
(curie kw)
(curie context kw)
(curie context prefix local)
Create an IRI in Compact URI form, based on a keyword namespace/name. Since IRIs must always have the full form available then the IRI must appear in a common namespace, or else a context map containing the prefix must be provided.
Create an IRI in Compact URI form, based on a keyword namespace/name. Since IRIs must always have the full form available then the IRI must appear in a common namespace, or else a context map containing the prefix must be provided.
(iri i)
(iri i kw)
(iri i p l)
Create an iri. If no prefix/namespace is available, then the prefix and local values may be nil. The full form of the IRI must always be available. (iri i): uses i as a full IRI string. Prefix and local are nil. (iri ctx p l): ctx is a map of prefixes as keywords to namespace strings. p and l are the prefix and local values for the iri. The keyword for p must appear as a key in the ctx map. (iri i p l): i is the full IRI string for the IRI, and p and l are the prefix:local pair for the CURIE form. l must match the tail of the IRI.
Create an iri. If no prefix/namespace is available, then the prefix and local values may be nil. The full form of the IRI must always be available. (iri i): uses i as a full IRI string. Prefix and local are nil. (iri ctx p l): ctx is a map of prefixes as keywords to namespace strings. p and l are the prefix and local values for the iri. The keyword for p must appear as a key in the ctx map. (iri i p l): i is the full IRI string for the IRI, and p and l are the prefix:local pair for the CURIE form. l must match the tail of the IRI.
(lang-literal value lang)
Create a language coded literal. e.g. 'data'@en
Create a language coded literal. e.g. 'data'@en
(blank? this)
Returns true if the node is a blank node
Returns true if the node is a blank node
(get-type this)
Returns a keyword indicating the type of the node.
Returns a keyword indicating the type of the node.
(iri? this)
Returns true if the node is an iri
Returns true if the node is an iri
(lang-literal? this)
Returns true if the node is a language coded literal
Returns true if the node is a language coded literal
(literal? this)
Returns true if the node is a literal
Returns true if the node is a literal
(typed-literal? this)
Returns true if the node is a typed literal
Returns true if the node is a typed literal
(print-escape s)
Escapes a string for printing
Escapes a string for printing
(to-clj {:keys [value datatype] :as literal})
Converts an RDF Literal with a datatype into a native Clojure value
Converts an RDF Literal with a datatype into a native Clojure value
(typed-literal value)
(typed-literal value datatype)
Converts a Clojure value into an RDF Literal. The datatype will be inferred if none is available.
Converts a Clojure value into an RDF Literal. The datatype will be inferred if none is available.
(unsafe-blank-node label)
Return a new blank node object for a provided label. Reuse of a label will return a new blank node. This is for code that needs to manage its own blank node allocation.
Return a new blank node object for a provided label. Reuse of a label *will* return a new blank node. This is for code that needs to manage its own blank node allocation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close