Liking cljdoc? Tell your friends :D

com.yetanalytics.datasim.xapi.profile

Profile compilation.

Creates a profile-map data structure that is used for the simulation of an entire Profile cosmos.

Profile compilation.

Creates a `profile-map` data structure that is used for the simulation
of an entire Profile cosmos.
raw docstring

profile-object-specclj

source

profile-typesclj

source

profiles->profile-mapclj

(profiles->profile-map profiles pattern-params activity-seed)

Create a map from profiles that contains the following:

  • type-iri-map: A map from object types to IDs to the object maps (i.e. Concepts, Statement Templates, and Patterns).
  • activity-map: A map from Activity Type IDs to Activity IDs to the Activity maps (in Statement, not Profile, form).
  • verb-map: A map from Verb IDs to Verbs (in Statement, not Profile, form).
  • extension-spec-map: A map from one of :activity, :context, or :result to an Extension ID to the Extension spec derived from its inlineSchema property.
  • statement-base-map: A map from Template IDs to the Template's xAPI Statement base, as derived from its determining properties and inScheme.
  • parsed-rules-map: A map from Template IDs to the Template's parsed rules.
  • pattern-walk-fn: A function that, when passed in alignment and rng arguments, generates a lazy sequence of visited Templates for a particular primary Pattern.

Uses pattern-params to narrow down primary Patterns and activity-seed to generate additional Activity IDs in the cosmos.

Create a map from `profiles` that contains the following:

- `type-iri-map`: A map from object types to IDs to the object maps (i.e.
Concepts, Statement Templates, and Patterns).
- `activity-map`: A map from Activity Type IDs to Activity IDs to the
Activity maps (in Statement, not Profile, form).
- `verb-map`: A map from Verb IDs to Verbs (in Statement, not Profile,
form).
- `extension-spec-map`: A map from one of `:activity`, `:context`, or
`:result` to an Extension ID to the Extension spec derived from its
`inlineSchema property`.
- `statement-base-map`: A map from Template IDs to the Template's
xAPI Statement base, as derived from its determining properties and inScheme.
- `parsed-rules-map`: A map from Template IDs to the Template's parsed
rules.
- `pattern-walk-fn`: A function that, when passed in `alignment` and `rng`
arguments, generates a lazy sequence of visited Templates for a particular
primary Pattern.

Uses `pattern-params` to narrow down primary Patterns and `activity-seed` to
generate additional Activity IDs in the cosmos.
sourceraw docstring

profiles->type-iri-mapclj

(profiles->type-iri-map profiles)

Given a collection of profiles, return a map of type (e.g. "Verb", "StatementTemplate", "Pattern"), to a map from object ID IRIs to the objects themselves.

Given a collection of profiles, return a map of type (e.g. "Verb",
"StatementTemplate", "Pattern"), to a map from object ID IRIs to
the objects themselves.
sourceraw docstring

select-primary-patternsclj

(select-primary-patterns type-iri-map {:keys [gen-profiles gen-patterns]})

Given type-iri-map and the gen-profiles and gen-patterns params, update the Pattern map to further specify primary patterns for generation. Primary patterns in this context must be specified by gen-profiles or gen-patterns, or else they will no longer be counted as primary patterns.

Given `type-iri-map` and the `gen-profiles` and `gen-patterns` params,
update the Pattern map to further specify primary patterns for generation.
Primary patterns in this context must be specified by `gen-profiles` or
`gen-patterns`, or else they will no longer be counted as primary patterns.
sourceraw docstring

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

× close