Liking cljdoc? Tell your friends :D

fluree.json-ld.impl.expand


appendclj/s

source

append-value!clj/s

(append-value! t-map k v)
source

default-graph?clj/s

(default-graph? node-map graph-key)
source

detailsclj/s

(details compact-iri context vocab?)

Attempts to match compact-IRI, and if successful returns a two-tuple of the full matched IRI along with a map containing any details provided in the original context.

Used primarily with transactions, as if enough details are provided with the context we can auto-generate schemas.

Attempts to match compact-IRI, and if successful returns a two-tuple of
the full matched IRI along with a map containing any details provided
in the original context.

Used primarily with transactions, as if enough details are provided with the context
we can auto-generate schemas.
sourceraw docstring

expand-nodeclj/s

(expand-node node-map parsed-context externals idx)

Expands an entire JSON-LD node (JSON object), with optional parsed context provided. If node has a local context, will merge with provided parse-context.

Expands into child nodes.

Expands an entire JSON-LD node (JSON object), with optional parsed context
provided. If node has a local context, will merge with provided parse-context.

Expands into child nodes.
sourceraw docstring

expand-nodesclj/s

(expand-nodes context externals idx nodes)
source

get-contextclj/s

(get-context node-map)
source

iriclj/s

(iri compact-iri context vocab?)

Expands a compacted iri string to full iri.

If the iri is not compacted, returns original iri string.

Expands a compacted iri string to full iri.

If the iri is not compacted, returns original iri string.
sourceraw docstring

list-item?clj/s

(list-item? m)

Returns true if map is a @list.

A valid @list must be the only key in the map, or optionally can have an @index key

Returns true if map is a @list.

A valid @list must be the only key in the map, or optionally can have an @index key
sourceraw docstring

match-defaultclj/s

(match-default compact-iri context vocab?)

If context defines a :vocab (default vocab) and compact-iri does not look like a full iri (i.e. not https://schema.org/Movie) returns match. If successful returns two-tuple of [full-iri context-map-details]. Else returns nil.

If context defines a :vocab (default vocab) and compact-iri does
not look like a full iri (i.e. not https://schema.org/Movie) returns match.
If successful returns two-tuple of [full-iri context-map-details].
Else returns nil.
sourceraw docstring

match-exactclj/s

(match-exact compact-iri context)

Attempts to do an exact match with a compact-iri. If successful returns two-tuple of [full-iri context-map-details]. Else returns nil.

Attempts to do an exact match with a compact-iri.
If successful returns two-tuple of [full-iri context-map-details].
Else returns nil.
sourceraw docstring

match-prefixclj/s

(match-prefix compact-iri context)

Attempts to do a prefix match with a compact-iri. If successful returns two-tuple of [full-iri context-map-details]. Else returns nil.

Attempts to do a prefix match with a compact-iri.
If successful returns two-tuple of [full-iri context-map-details].
Else returns nil.
sourceraw docstring

nodeclj/s

(node node-map)
(node node-map parsed-context)
(node node-map parsed-context externals)

Internal implementation of JSON-LD expansion. See fluree.json-ld/expand for public API.

Internal implementation of JSON-LD expansion.
See fluree.json-ld/expand for public API.
sourceraw docstring

parse-node-valclj/smultimethod

source

parse-typeclj/s

(parse-type node-map context idx)

Parses @type values, returns two-tuple of expanded @type IRIs and a (possibly) updated context if there was a type-dependent sub-context present. Always return @type as a vector regardless of input.

Parses @type values, returns two-tuple of expanded @type IRIs
and a (possibly) updated context if there was a type-dependent sub-context present.
Always return @type as a vector regardless of input.
sourceraw docstring

set-item?clj/s

(set-item? m)

Returns true if map is a @set.

A valid @set must be the only key in the map, or optionally can have an @index key

Returns true if map is a @set.

A valid @set must be the only key in the map, or optionally can have an @index key
sourceraw docstring

throw-invalid-languageclj/s

(throw-invalid-language)
source

variable?clj/s

(variable? x)
source

wrap-errorclj/s

(wrap-error error idx)

Wraps an error happening upstream with :idx value if not present. Must be an ex-info formatted error.

Wraps an error happening upstream with :idx value if not present.
Must be an ex-info formatted error.
sourceraw docstring

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

× close