Understanding elements of xAPI profiles Generate Profile walks
Understanding elements of xAPI profiles Generate Profile walks
(loc-iri-map loc)
Given a zipper loc, get the map of profile subobjects by IRI
Given a zipper loc, get the map of profile subobjects by IRI
(loc-object loc)
Given a zipper loc, look up the object from the IRI
Given a zipper loc, look up the object from the IRI
(pattern-zip & profiles)
Given one or more profiles, create a zipper that traverses the patterns and
templates. Root is a special keyword ::root with the primary patterns as
alternates
children.
Given one or more profiles, create a zipper that traverses the patterns and templates. Root is a special keyword ::root with the primary patterns as `alternates` children.
(profiles->map & profiles)
Given any number of profiles, return all IRIs mapped to what they reference
Given any number of profiles, return all IRIs mapped to what they reference
(rand-pattern-zip profiles
alignment
rng
&
{:keys [repeat-max] :or {repeat-max 5}})
Building on the comprehension from pattern-zip, return a zipper that uses a deterministic pseudorandom walk for choosing children/paths.
Building on the comprehension from pattern-zip, return a zipper that uses a deterministic pseudorandom walk for choosing children/paths.
(registration-seq root-loc rng)
(registration-seq profiles alignment seed)
Given a seed, alignment and profiles, return an infinite seq of maps where
:registration
is a string uuid
:template
is a statement template
:seed
is a derived seed for generating the statement.
Given a seed, alignment and profiles, return an infinite seq of maps where `:registration` is a string uuid `:template` is a statement template `:seed` is a derived seed for generating the statement.
(walk-once loc)
From the root of a pattern zip, perform a single walk of a primary pattern, returning a seq of locs
From the root of a pattern zip, perform a single walk of a primary pattern, returning a seq of locs
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close