(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.
(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.
(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.
(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
(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.
(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.
(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.
(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.
(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.
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close