Liking cljdoc? Tell your friends :D

com.yetanalytics.pan.identifiers


count-idsclj/s

(count-ids ids-coll)

Count the number of ID instances by creating a map between IDs and their respective counts. (Ideally theys should all be one, as IDs MUST be unique by definition.)

Count the number of ID instances by creating a map between IDs and their
respective counts. (Ideally theys should all be one, as IDs MUST be unique
by definition.)
sourceraw docstring

filter-by-idsclj/s

(filter-by-ids id-set obj-coll)

Given obj-coll of maps with the :id key, filter such that only those with IDs present in id-set remain.

Given `obj-coll` of maps with the `:id` key, filter such that only those
with IDs present in `id-set` remain.
sourceraw docstring

filter-by-ids-kvclj/s

(filter-by-ids-kv id-set id-val-m)

Similar to filter-by-ids, except that id-val-m is a map from IDs to values.

Similar to `filter-by-ids`, except that `id-val-m` is a map from IDs
to values.
sourceraw docstring

objs->idsclj/s

(objs->ids obj-coll)

Return a lazy seq of IDs from a collection of objects.

Return a lazy seq of IDs from a collection of objects.
sourceraw docstring

objs->out-idsclj/s

(objs->out-ids obj-coll selected-keys)

Given obj-coll of maps with IRI/IRI-array valued keys (defined by selected-keys), return a set of all such IRI values. Does not check whether or not the IDs already exist in obj-coll.

Given `obj-coll` of maps with IRI/IRI-array valued keys (defined by
`selected-keys`), return a set of all such IRI values. Does not check
whether or not the IDs already exist in `obj-coll`.
sourceraw docstring

objs->out-ids-mapclj/s

(objs->out-ids-map obj-coll selected-keys)
(objs->out-ids-map obj-coll selected-keys filter-id-set)

Like obj->out-ids, but returns a map from keys to sets of IRI values. Passing in the optional filter-id-set arg removes IRI values form the result that are in that set.

Like `obj->out-ids`, but returns a map from keys to sets of IRI values.
Passing in the optional `filter-id-set` arg removes IRI values form
the result that are in that set.
sourceraw docstring

profile->id-seqclj/s

Memoized version of profile->id-seq*.

Memoized version of `profile->id-seq*`.
sourceraw docstring

profile->id-seq*clj/s

(profile->id-seq* {:keys [id versions concepts templates patterns]
                   :as _profile})

Given profile, return a lazy seq of ID from all of its sub-objects.

Given `profile`, return a lazy seq of ID from all of its
sub-objects.
sourceraw docstring

validate-idsclj/s

(validate-ids profile)
(validate-ids profile extra-profiles)

Takes a Profile and validates that all ID values in it are distinct (including across the extra Profiles). Returns nil on success, or spec error data on failure.

Takes a Profile and validates that all ID values in it are distinct
(including across the extra Profiles). Returns nil on success, or
spec error data on failure.
sourceraw docstring

validate-in-schemesclj/s

(validate-in-schemes {:keys [versions concepts templates patterns]})

Takes a Profile and validates all object inSchemes, which MUST be valid version IDs. Returns nil on success, or spec error data on failure.

Takes a Profile and validates all object inSchemes, which MUST be valid
version IDs. Returns nil on success, or spec error data on failure.
sourceraw docstring

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

× close