Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yetanalytics/polyprofile
xAPI Profile generation library
https://github.com/yetanalytics/polyprofile
Last synced: 8 days ago
JSON representation
xAPI Profile generation library
- Host: GitHub
- URL: https://github.com/yetanalytics/polyprofile
- Owner: yetanalytics
- License: apache-2.0
- Created: 2022-05-19T18:34:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T22:07:20.000Z (about 2 years ago)
- Last Synced: 2024-11-28T16:53:27.595Z (about 1 month ago)
- Language: Clojure
- Homepage: https://clojars.org/com.yetanalytics/polyprofile/
- Size: 61.5 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# polyprofile
xAPI Profile generation library
## Installation
```clojure
{com.yetanalytics/polyprofile {:mvn/version "0.1.2"
:exclusions [org.clojure/clojure
org.clojure/clojurescript]}}
```## API
The API has a single function: `generate-profile-seq`, which takes a single arg map and generates a lazy seq of xAPI Profiles whose IRI properties (e.g. `broader`, `narrower`) are guaranteed to relate to other Profile objects in that seq.
Options not provided in the arg map use the values of `default-args`. The following is a list of valid args:
| Arg | Description | Default |
| --- | --- | --- |
| `:num-profiles` | The number of Profiles to be generated in the seq. | `10` |
| `:num-versions` | The number of Profile versions per Profile. | `2` |
| `:num-verbs` | The number of Verbs per Profile. | `5` |
| `:num-activity-types` | The number of Activity Types per Profile. | `5` |
| `:num-attachment-usage-types` | The number of Attachment Usage Types per Profile. | `2` |
| `:num-activity-extensions` | The number of Activity Extensions per Profile. | `0` |
| `:num-context-extensions` | The number of Context Extensions per Profile. | `0` |
| `:num-result-extensions` | The number of Result Extensions per Profile. | `0` |
| `:num-state-resources` | The number of State Resources per Profile. | `0` |
| `:num-activity-profile-resources` | The number of Activity Profile Resources per Profile. | `0` |
| `:num-agent-profile-resources` | The number of Agent Profile Resources per Profile. | `0` |
| `:num-activities` | The number of Activities per Profile. | `5` |
| `:num-statement-templates` | The number of Statement Templates per Profile. | `5` |
| `:num-patterns` | The number of Patterns per Profile. | `5` |
| `:max-iris` | The maximum number of IRIs that can be generated in a single IRI array (e.g. for `broader` and `narrower`). | `5` |All IRIs will point to other IRIs in the Profile cosmos to the extent specified by the xAPI Profile spec; the exception is with Patterns, which only point to sub-Patterns in the same Profile version (though they can point to any Template in the cosmos).