Liking cljdoc? Tell your friends :D

ont-app.vocabulary.core

clj

Defines utilities and a set of namespaces for commonly used linked data constructs, metadata of which specifies RDF namespaces, prefixes and other details.

Defines utilities and a set of namespaces for commonly used linked data constructs, metadata of which specifies RDF namespaces, prefixes and other details.
raw docstring

*alias-map*cljs

{<alias> <ns-name>, ...} Where <alias> is a symbol <ns-name> is a symbol naming an ns in the current lexical env Informs cljc-ns-aliases in cljs space.

{<alias> <ns-name>, ...}
Where
<alias> is a symbol
<ns-name> is a symbol naming an ns in the current lexical env
Informs cljc-ns-aliases in cljs space.
raw docstring

clear-caches!clj/s

(clear-caches!)

cljc-all-nsclj/s

(cljc-all-ns)

cljc-errorclj/s

(cljc-error msg)

cljc-find-nsclj/s

(cljc-find-ns _ns)

cljc-find-prefixesclj/s

(cljc-find-prefixes re-str s)

Returns #{<prefix>...} for s Where <prefix> is a prefix found in <s>, for which some (meta ns) has a :vann/preferredNamespacePrefix declaration <s> is a string, typically a SPARQL query body for which we want to infer prefix declarations.

Returns #{<prefix>...} for `s`
Where
<prefix> is a prefix found in <s>, for which some (meta ns) has a 
  :vann/preferredNamespacePrefix declaration
<s> is a string, typically a SPARQL query body for which we want to 
  infer prefix declarations.
raw docstring

cljc-get-ns-metaclj/s

(cljc-get-ns-meta)
(cljc-get-ns-meta _ns)

Returns <metadata> assigned to ns named _ns Where <_ns> names a namespace or a 'dummy' namespace whose sole purpose is to hold metadata. <metadata> := {<key> <value>, ...} <key> is a keyword containing vocabulary metadata, e.g. :vann/preferredNamespacePrefix

Returns <metadata> assigned to ns named `_ns`
Where
<_ns> names a namespace or a 'dummy' namespace whose sole purpose is to hold metadata.
<metadata> := {<key> <value>, ...}
<key> is a keyword containing vocabulary metadata, e.g. :vann/preferredNamespacePrefix
raw docstring

cljc-ns-aliasesclj/s

(cljc-ns-aliases)

cljc-put-ns-meta!clj/s

(cljc-put-ns-meta! m)
(cljc-put-ns-meta! _ns m)

Side-effect: ensures that subsequent calls to (cljc-get-ns-meta _ns return m Where <_ns> is an ns(clj only) or the name of a namespace, possibly declared for the sole purpose of holding vocabulary metadata (e.g. rdf, foaf, etc) <m> := {<key> <value>, ...}, metadata (clj) or 'pseudo-metadata' (cljs) <key> is a keyword containing vocabulary metadata, e.g. ::vann/preferredNamespacePrefix NOTE: In cljs, ns's are not available at runtime, so the metadata is stored in an atom called 'voc/cljs-ns-metadata' See also declarations for ont-app.vocabulary.rdf, ont-app.vocabulary.foaf, etc. for examples of namespaces declared solely to hold vocabulary metadata.

Side-effect: ensures that subsequent calls to (cljc-get-ns-meta `_ns` return `m`
Where
<_ns> is an ns(clj only) or the name of a namespace, possibly declared for the sole purpose of holding vocabulary metadata (e.g. rdf, foaf, etc)
<m> := {<key> <value>, ...}, metadata (clj) or 'pseudo-metadata' (cljs)
<key> is a keyword containing vocabulary metadata, e.g. ::vann/preferredNamespacePrefix
NOTE: In cljs, ns's are not available at runtime, so the metadata is stored
  in an atom called 'voc/cljs-ns-metadata'
See also declarations for ont-app.vocabulary.rdf, ont-app.vocabulary.foaf, etc.
for examples of namespaces declared solely to hold vocabulary metadata.
raw docstring

cljs-ns-metadatacljs

Namespaces in cljs are not proper objects, and there is no metadata available at runtime. This atom stores 'pseudo-metadata' declared with cljc-put-ns-metadata and accessed with cljc-get-metadata. Clj just uses the metadata regime for its ns's

Namespaces in cljs are not proper objects, and there is no metadata
available at runtime. This atom stores 'pseudo-metadata' declared with
cljc-put-ns-metadata and accessed with cljc-get-metadata. Clj just uses
the metadata regime for its ns's
raw docstring

collect-prefixesclj/s

(collect-prefixes acc next-ns)

Returns {<prefix> <namespace> ...} s.t. <next-ns> is included Where <prefix> is a prefix declared in the metadata of <next-ns> <namespace> is a URI namespace declared for <prefix> in metadata of <next-ns> <next-ns> is typically an element in a reduction sequence of ns's

Returns {<prefix> <namespace> ...} s.t. <next-ns> is included
Where
<prefix> is a prefix declared in the metadata of <next-ns>
<namespace> is a URI namespace declared for <prefix> in metadata of <next-ns>
<next-ns> is typically an element in a reduction sequence of ns's 
raw docstring

decode-uri-stringclj/s

(decode-uri-string s)

encode-uri-stringclj/s

(encode-uri-string s)

invalid-qname-nameclj/s


iri-forclj/s

(iri-for kw)

Returns <iri> for kw based on metadata attached to <ns> Where <iri> is of the form <namespace><value> <kw> is a keyword of the form <prefix>:<value> <ns> is an instance of clojure.lang.ns <prefix> is declared with :vann/preferredNamespacePrefix in metadata of <ns> <namespace> is typically of the form http://...., declared with :vann/preferredNamespaceUri in metadata of <ns>

Returns <iri>  for `kw` based on metadata attached to <ns>
Where
<iri> is of the form <namespace><value>
<kw> is a keyword of the form <prefix>:<value>
<ns> is an instance of clojure.lang.ns
<prefix> is declared with :vann/preferredNamespacePrefix in metadata of <ns>
<namespace> is typically of the form http://...., declared with 
  :vann/preferredNamespaceUri in metadata of <ns>
raw docstring

keyword-forclj/s

(keyword-for uri)

Returns a keyword equivalent of <uri>, properly prefixed if LOD declarations exist in some ns in the current lexical environment.

Returns a keyword equivalent of <uri>, properly prefixed if LOD declarations
exist in some ns in the current lexical environment.
raw docstring

namespace-reclj/s

(namespace-re)

namespace-to-nsclj/s

(namespace-to-ns)

namespace-to-ns-cacheclj/s


ns-to-namespaceclj/s

(ns-to-namespace _ns)

Returns <iri> for <ns> Where <iri> is an iri declared with :vann/preferredNamespaceUri in the metadata for <ns>, or nil <ns> is an instance of clojure.lang.Namespace

Returns <iri> for <ns>
Where
<iri> is an iri declared with :vann/preferredNamespaceUri in the metadata for 
  <ns>, or nil
<ns> is an instance of clojure.lang.Namespace
raw docstring

ns-to-prefixclj/s

(ns-to-prefix _ns)

Returns the prefix associated with _ns Where <_ns> is a clojure namespace, which may have :vann/preferredNamespacePrefix declaration in its metadata.

Returns the prefix associated with `_ns`
Where
<_ns> is a clojure namespace, which may have :vann/preferredNamespacePrefix
  declaration in its metadata.   
raw docstring

prefix-re-strclj/s

(prefix-re-str)

prefix-re-str-cacheclj/s


prefix-to-namespace-uriclj/s

(prefix-to-namespace-uri prefix)

returns namespace URI associated with prefix Where: <namespace> is a string declared for some <ns> with vann/preferredNamespaceUri <prefix> is a string declared for <ns> with vann/preferredNamespacePrefix

returns `namespace` URI associated with `prefix`
Where:
<namespace> is a string declared for some <ns> with vann/preferredNamespaceUri
<prefix> is a string declared for <ns> with vann/preferredNamespacePrefix
raw docstring

prefix-to-nsclj/s

(prefix-to-ns)

prefix-to-ns-cacheclj/s


prepend-prefix-declarationsclj/s

(prepend-prefix-declarations sparql-string)

Returns <sparql-string>, prepended with appropriate PREFIX decls.

Returns <sparql-string>, prepended with appropriate PREFIX decls.
raw docstring

qname-forclj/s

(qname-for kw)

Returns the 'qname' URI for kw, or <...>'d full URI if no valid qname could be found. Throws an error if the prefix is specified, but can't be mapped to metadata. Where <kw> is a keyword, in a namespace with LOD declarations in its metadata.

Returns the 'qname' URI for `kw`, or <...>'d full URI if no valid qname could be found. Throws an error if the prefix is specified, but can't be mapped to metadata.
Where
  <kw> is a keyword, in a namespace with LOD declarations in its metadata.
raw docstring

sparql-prefixes-forclj/s

(sparql-prefixes-for sparql-string)

Returns [<prefix-string>...] for each prefix identified in <sparql-string> Where <prefix-string> := PREFIX <prefix>: <namespace>

<prefix> is a prefix defined for <namespace> in metadata of some ns with :vann/preferredNamespacePrefix <namespace> is a namespace defined in the metadata for some ns with :vann/preferredNamespaceUri

Returns [<prefix-string>...] for each prefix identified in <sparql-string>
Where
<prefix-string> := PREFIX <prefix>: <namespace>

<prefix> is a prefix defined for <namespace> in metadata of some ns with 
  :vann/preferredNamespacePrefix
<namespace> is a namespace defined in the metadata for some ns with 
  :vann/preferredNamespaceUri
raw docstring

termsclj/s

Describes T-box for this namespace.

Describes T-box for this namespace.
raw docstring

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

× close