Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to version 1.0.0 #88

Merged
merged 5 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .github/workflows/testactivities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +26,6 @@ jobs:
- name: JSON linter
run: |
python tests/jsonParser.py
- name: Test with pyshacl
- name: Validate activities
run: |
reproschema -l DEBUG validate activities
131 changes: 69 additions & 62 deletions activities/ACE/ACE_schema
Original file line number Diff line number Diff line change
@@ -1,101 +1,108 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Activity",
"@id": "ACE_schema",
"prefLabel": "ACE",
"description": "Mobile cognitive control assessment battery containing standard tests that assess different aspects of cognitive control (attention, working memory, and goal management), modified by incorporating adaptive algorithms, immersive graphics, video tutorials, motivating feedback, and a user-friendly interface.",
"schemaVersion": "1.0.0-rc4",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_schema",
"category": "Activity",
"citation": {
"en": "https://neuroscape.ucsf.edu/technology/"
},
"description": {
"en": "Mobile cognitive control assessment battery containing standard tests that assess different aspects of cognitive control (attention, working memory, and goal management), modified by incorporating adaptive algorithms, immersive graphics, video tutorials, motivating feedback, and a user-friendly interface."
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"citation": "https://neuroscape.ucsf.edu/technology/",
"preamble": "Prior to your 18th birthday:",
"isProprietary": false,
"compute": [
{
"variableName": "ACE_total_score",
"jsExpression": "ACE_01 + ACE_02 + ACE_03 + ACE_04 + ACE_05 + ACE_06 + ACE_07 + ACE_08 + ACE_09 + ACE_10"
}
],
"ui": {
"order": [
"items/ACE_01",
"items/ACE_02",
"items/ACE_03",
"items/ACE_04",
"items/ACE_05",
"items/ACE_06",
"items/ACE_07",
"items/ACE_08",
"items/ACE_09",
"items/ACE_10",
"items/ACE_total_score"
],
"shuffle": false,
"addProperties": [
{
"variableName": "ACE_01",
"isAbout": "items/ACE_01",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_01",
"isVis": true,
"variableName": "ACE_01"
},
{
"variableName": "ACE_02",
"isAbout": "items/ACE_02",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_02",
"isVis": true,
"variableName": "ACE_02"
},
{
"variableName": "ACE_03",
"isAbout": "items/ACE_03",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_03",
"isVis": true,
"variableName": "ACE_03"
},
{
"variableName": "ACE_04",
"isAbout": "items/ACE_04",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_04",
"isVis": true,
"variableName": "ACE_04"
},
{
"variableName": "ACE_05",
"isAbout": "items/ACE_05",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_05",
"isVis": true,
"variableName": "ACE_05"
},
{
"variableName": "ACE_06",
"isAbout": "items/ACE_06",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_06",
"isVis": true,
"variableName": "ACE_06"
},
{
"variableName": "ACE_07",
"isAbout": "items/ACE_07",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_07",
"isVis": true,
"variableName": "ACE_07"
},
{
"variableName": "ACE_08",
"isAbout": "items/ACE_08",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_08",
"isVis": true,
"variableName": "ACE_08"
},
{
"variableName": "ACE_09",
"isAbout": "items/ACE_09",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_09",
"isVis": true,
"variableName": "ACE_09"
},
{
"variableName": "ACE_10",
"isAbout": "items/ACE_10",
"valueRequired": true,
"isVis": true
"isAbout": "items/ACE_10",
"isVis": true,
"variableName": "ACE_10"
},
{
"variableName": "ACE_total_score",
"isAbout": "items/ACE_total_score",
"isVis": false
"isVis": false,
"variableName": "ACE_total_score"
}
]
],
"order": [
"items/ACE_01",
"items/ACE_02",
"items/ACE_03",
"items/ACE_04",
"items/ACE_05",
"items/ACE_06",
"items/ACE_07",
"items/ACE_08",
"items/ACE_09",
"items/ACE_10",
"items/ACE_total_score"
],
"shuffle": false
},
"compute": [
{
"jsExpression": "ACE_01 + ACE_02 + ACE_03 + ACE_04 + ACE_05 + ACE_06 + ACE_07 + ACE_08 + ACE_09 + ACE_10",
"variableName": "ACE_total_score"
}
],
"preamble": {
"en": "Prior to your 18th birthday:"
},
"prefLabel": {
"en": "ACE"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_01
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_01",
"prefLabel": "ACE Q1",
"description": "Q1 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_01",
"category": "Item",
"description": {
"en": "Q1 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Did a parent or other adult in the household often or very often swear at you, insult you, put you down, or humiliate you? or Act in a way that made you afraid that you might be physically hurt?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q1"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_02
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_02",
"prefLabel": "ACE Q2",
"description": "Q2 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_02",
"category": "Item",
"description": {
"en": "Q2 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Did a parent or other adult in the household often or very often push, grab, slap, or throw something at you? or Ever hit you so hard that you had marks or were injured?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q2"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_03
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_03",
"prefLabel": "ACE Q3",
"description": "Q3 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_03",
"category": "Item",
"description": {
"en": "Q3 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Did an adult or person at least 5 years older than you ever touch or fondle you or have you touch their body in a sexual way? or Attempt or actually have oral, anal, or vaginal intercourse with you?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q3"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_04
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_04",
"prefLabel": "ACE Q4",
"description": "Q4 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_04",
"category": "Item",
"description": {
"en": "Q4 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Did you often or very often feel that no one in your family loved you or thought you were important or special? or Your family didn't look out for each other, feel close to each other, or support each other?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q4"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_05
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_05",
"prefLabel": "ACE Q5",
"description": "Q5 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_05",
"category": "Item",
"description": {
"en": "Q5 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Did you often or very often feel that you didn't have enough to eat, had to wear dirty clothes, and had no one to protect you? or Your parents were too drunk or high to take care of you or take you to the doctor if you needed it?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q5"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_06
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_06",
"prefLabel": "ACE Q6",
"description": "Q6 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_06",
"category": "Item",
"description": {
"en": "Q6 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Were your parents ever separated or divorced?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q6"
}
}
20 changes: 12 additions & 8 deletions activities/ACE/items/ACE_07
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
"@type": "reproschema:Field",
"@id": "ACE_07",
"prefLabel": "ACE Q7",
"description": "Q7 of the Adverse Childhood Experiences Scale",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
"id": "ACE_07",
"category": "Item",
"description": {
"en": "Q7 of the Adverse Childhood Experiences Scale"
},
"question": {
"en": "Was your mother or stepmother: Often or very often pushed, grabbed, slapped, or had something thrown at her? or Sometimes, often, or very often kicked, bitten, hit with a fist, or hit with something hard? or Ever repeatedly hit over at least a few minutes or threatened with a gun or knife?"
},
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"inputType": "radio"
},
"responseOptions": "../valueConstraints"
"responseOptions": "../valueConstraints",
"prefLabel": {
"en": "ACE Q7"
}
}
Loading
Loading