Liking cljdoc? Tell your friends :D

fluree.json-ld.impl.context


copy-to-full-iriclj/s

(copy-to-full-iri context {:keys [id] :as parsed-v})

When a compact IRI is used to set the default datatype (@type), the data may also use the full IRI. This copies the options to the full IRI such that the data can use either the compact or full IRI.

When a compact IRI is used to set the default datatype (@type),
the data may also use the full IRI. This copies the options to the
full IRI such that the data can use either the compact or full IRI.
sourceraw docstring

keywordize-at-valueclj/s

(keywordize-at-value at-value)

If a context key value starts with '@' (i.e. @type, @id), returns keywordized version of those keys (i.e. :type, :id).

If a context key value starts with '@' (i.e. @type, @id), returns
keywordized version of those keys (i.e. :type, :id).
sourceraw docstring

parseclj/s

(parse context)
(parse base-context context)
(parse base-context externals context)

Internal context parsing implementation. See fluree.json-ld/parse-context for public API.

Internal context parsing implementation.
See fluree.json-ld/parse-context for public API.
sourceraw docstring

parse-compact-iri-valclj/s

(parse-compact-iri-val orig-context base-context default-vocab compact-iri)

A context's value may itself be a compact IRI which refers to another key in the original context map.

If it is a compact IRI, attempts to resolve it, else returns original value

i.e. with: {'nc' 'http://release.niem.gov/niem/niem-core/4.0/#' 'name' 'nc:PersonName'} we ultimately want 'name' to map to http://release.niem.gov/niem/niem-core/4.0/#PersonName

A context's value may itself be a compact IRI which refers to
another key in the original context map.

If it is a compact IRI, attempts to resolve it, else returns original value

i.e. with:
{'nc'   'http://release.niem.gov/niem/niem-core/4.0/#'
 'name' 'nc:PersonName'}
we ultimately want 'name' to map to http://release.niem.gov/niem/niem-core/4.0/#PersonName
sourceraw docstring

parse-mapclj/s

(parse-map base-context externals context)

Internal helper for parsing context maps.

Internal helper for parsing context maps.
sourceraw docstring

vocabclj/s

(vocab base-context context vocab)

Computes vocab prefix given provided base-context, context, & vocab

Computes vocab prefix given provided base-context, context, & vocab
sourceraw docstring

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

× close