Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.xapi.profile.template

Creation of statement-base-map and parsed-rules-map for Profile compilation.

Creation of `statement-base-map` and `parsed-rules-map` for Profile
compilation.
raw docstring

create-parsed-rules-mapclj

(create-parsed-rules-map type-iri-map)

Given Statement Templates in type-iri-map, return a map from those templates' IDs to those their parsed rules

Given Statement Templates in `type-iri-map`, return a map from those
templates' IDs to those their parsed rules
sourceraw docstring

create-statement-base-mapclj

(create-statement-base-map type-iri-map)

Given Statement Templates in type-iri-map, return a map from those templates' IDs to the base xAPI Statements they form from their Determining Properties and inScheme.

Given Statement Templates in `type-iri-map`, return a map from those
templates' IDs to the base xAPI Statements they form from their
Determining Properties and inScheme.
sourceraw docstring

template->parsed-rulesclj

(template->parsed-rules {object-activity-type :objectActivityType
                         object-statement-ref :objectStatementRefTemplate
                         rules :rules})

Return a collection of parsed rules derived from the template rules. Uses the object Determining Properties to assist with rule parsing.

Return a collection of parsed rules derived from the template `rules`.
Uses the object Determining Properties to assist with rule parsing.
sourceraw docstring

template->statement-baseclj

(template->statement-base {profile-version-id :inScheme
                           verb-id :verb
                           object-activity-type :objectActivityType
                           category-activity-types :contextCategoryActivityType
                           grouping-activity-types :contextGroupingActivityType
                           parent-activity-types :contextParentActivityType
                           other-activity-types :contextOtherActivityType
                           attachment-usage-types :attachmentUsageType})

Form the base of a statement from the Determining Properties of the Template. Elements of array-valued properties (the context activity types and the attachment usage types) are added in order.

Form the base of a statement from the Determining Properties of
the Template. Elements of array-valued properties (the context
activity types and the attachment usage types) are added in order.
sourceraw docstring

update-parsed-rules-mapclj

(update-parsed-rules-map profile-map parsed-rules-map)

Use information from profile-map to complete the rules in parsed-rules-map by adding additional valuesets or spec generators.

Use information from `profile-map` to complete the rules in
`parsed-rules-map` by adding additional valuesets or spec generators.
sourceraw docstring

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

× close