Creation of statement-base-map
and parsed-rules-map
for Profile
compilation.
Creation of `statement-base-map` and `parsed-rules-map` for Profile compilation.
(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
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close