Skip to content

Commit 9d6b865

Browse files
authored
migrate to version 1.0.0 (#88)
* migrate to version 1.0.0 * changing jsonParser so it accepts either @id or id * removing schema version from the response * updating python versions * changing Field to item
1 parent 8c11e4f commit 9d6b865

File tree

5,062 files changed

+128063
-90523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,062 files changed

+128063
-90523
lines changed

.github/workflows/testactivities.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: [3.9, '3.10', '3.11']
14+
python-version: ['3.10', '3.11', '3.12', '3.13']
1515

1616
steps:
1717
- uses: actions/checkout@v4
@@ -26,6 +26,6 @@ jobs:
2626
- name: JSON linter
2727
run: |
2828
python tests/jsonParser.py
29-
- name: Test with pyshacl
29+
- name: Validate activities
3030
run: |
3131
reproschema -l DEBUG validate activities

activities/ACE/ACE_schema

+69-62
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,108 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Activity",
4-
"@id": "ACE_schema",
5-
"prefLabel": "ACE",
6-
"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.",
7-
"schemaVersion": "1.0.0-rc4",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_schema",
4+
"category": "Activity",
5+
"citation": {
6+
"en": "https://neuroscape.ucsf.edu/technology/"
7+
},
8+
"description": {
9+
"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."
10+
},
11+
"schemaVersion": "1.0.0",
812
"version": "0.0.1",
9-
"citation": "https://neuroscape.ucsf.edu/technology/",
10-
"preamble": "Prior to your 18th birthday:",
11-
"isProprietary": false,
12-
"compute": [
13-
{
14-
"variableName": "ACE_total_score",
15-
"jsExpression": "ACE_01 + ACE_02 + ACE_03 + ACE_04 + ACE_05 + ACE_06 + ACE_07 + ACE_08 + ACE_09 + ACE_10"
16-
}
17-
],
1813
"ui": {
19-
"order": [
20-
"items/ACE_01",
21-
"items/ACE_02",
22-
"items/ACE_03",
23-
"items/ACE_04",
24-
"items/ACE_05",
25-
"items/ACE_06",
26-
"items/ACE_07",
27-
"items/ACE_08",
28-
"items/ACE_09",
29-
"items/ACE_10",
30-
"items/ACE_total_score"
31-
],
32-
"shuffle": false,
3314
"addProperties": [
3415
{
35-
"variableName": "ACE_01",
36-
"isAbout": "items/ACE_01",
3716
"valueRequired": true,
38-
"isVis": true
17+
"isAbout": "items/ACE_01",
18+
"isVis": true,
19+
"variableName": "ACE_01"
3920
},
4021
{
41-
"variableName": "ACE_02",
42-
"isAbout": "items/ACE_02",
4322
"valueRequired": true,
44-
"isVis": true
23+
"isAbout": "items/ACE_02",
24+
"isVis": true,
25+
"variableName": "ACE_02"
4526
},
4627
{
47-
"variableName": "ACE_03",
48-
"isAbout": "items/ACE_03",
4928
"valueRequired": true,
50-
"isVis": true
29+
"isAbout": "items/ACE_03",
30+
"isVis": true,
31+
"variableName": "ACE_03"
5132
},
5233
{
53-
"variableName": "ACE_04",
54-
"isAbout": "items/ACE_04",
5534
"valueRequired": true,
56-
"isVis": true
35+
"isAbout": "items/ACE_04",
36+
"isVis": true,
37+
"variableName": "ACE_04"
5738
},
5839
{
59-
"variableName": "ACE_05",
60-
"isAbout": "items/ACE_05",
6140
"valueRequired": true,
62-
"isVis": true
41+
"isAbout": "items/ACE_05",
42+
"isVis": true,
43+
"variableName": "ACE_05"
6344
},
6445
{
65-
"variableName": "ACE_06",
66-
"isAbout": "items/ACE_06",
6746
"valueRequired": true,
68-
"isVis": true
47+
"isAbout": "items/ACE_06",
48+
"isVis": true,
49+
"variableName": "ACE_06"
6950
},
7051
{
71-
"variableName": "ACE_07",
72-
"isAbout": "items/ACE_07",
7352
"valueRequired": true,
74-
"isVis": true
53+
"isAbout": "items/ACE_07",
54+
"isVis": true,
55+
"variableName": "ACE_07"
7556
},
7657
{
77-
"variableName": "ACE_08",
78-
"isAbout": "items/ACE_08",
7958
"valueRequired": true,
80-
"isVis": true
59+
"isAbout": "items/ACE_08",
60+
"isVis": true,
61+
"variableName": "ACE_08"
8162
},
8263
{
83-
"variableName": "ACE_09",
84-
"isAbout": "items/ACE_09",
8564
"valueRequired": true,
86-
"isVis": true
65+
"isAbout": "items/ACE_09",
66+
"isVis": true,
67+
"variableName": "ACE_09"
8768
},
8869
{
89-
"variableName": "ACE_10",
90-
"isAbout": "items/ACE_10",
9170
"valueRequired": true,
92-
"isVis": true
71+
"isAbout": "items/ACE_10",
72+
"isVis": true,
73+
"variableName": "ACE_10"
9374
},
9475
{
95-
"variableName": "ACE_total_score",
9676
"isAbout": "items/ACE_total_score",
97-
"isVis": false
77+
"isVis": false,
78+
"variableName": "ACE_total_score"
9879
}
99-
]
80+
],
81+
"order": [
82+
"items/ACE_01",
83+
"items/ACE_02",
84+
"items/ACE_03",
85+
"items/ACE_04",
86+
"items/ACE_05",
87+
"items/ACE_06",
88+
"items/ACE_07",
89+
"items/ACE_08",
90+
"items/ACE_09",
91+
"items/ACE_10",
92+
"items/ACE_total_score"
93+
],
94+
"shuffle": false
95+
},
96+
"compute": [
97+
{
98+
"jsExpression": "ACE_01 + ACE_02 + ACE_03 + ACE_04 + ACE_05 + ACE_06 + ACE_07 + ACE_08 + ACE_09 + ACE_10",
99+
"variableName": "ACE_total_score"
100+
}
101+
],
102+
"preamble": {
103+
"en": "Prior to your 18th birthday:"
104+
},
105+
"prefLabel": {
106+
"en": "ACE"
100107
}
101108
}

activities/ACE/items/ACE_01

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_01",
5-
"prefLabel": "ACE Q1",
6-
"description": "Q1 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_01",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q1 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q1"
19+
}
1620
}

activities/ACE/items/ACE_02

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_02",
5-
"prefLabel": "ACE Q2",
6-
"description": "Q2 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_02",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q2 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q2"
19+
}
1620
}

activities/ACE/items/ACE_03

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_03",
5-
"prefLabel": "ACE Q3",
6-
"description": "Q3 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_03",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q3 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q3"
19+
}
1620
}

activities/ACE/items/ACE_04

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_04",
5-
"prefLabel": "ACE Q4",
6-
"description": "Q4 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_04",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q4 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q4"
19+
}
1620
}

activities/ACE/items/ACE_05

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_05",
5-
"prefLabel": "ACE Q5",
6-
"description": "Q5 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_05",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q5 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q5"
19+
}
1620
}

activities/ACE/items/ACE_06

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_06",
5-
"prefLabel": "ACE Q6",
6-
"description": "Q6 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_06",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q6 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"en": "Were your parents ever separated or divorced?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q6"
19+
}
1620
}

activities/ACE/items/ACE_07

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc4/contexts/generic",
3-
"@type": "reproschema:Field",
4-
"@id": "ACE_07",
5-
"prefLabel": "ACE Q7",
6-
"description": "Q7 of the Adverse Childhood Experiences Scale",
7-
"schemaVersion": "1.0.0-rc4",
8-
"version": "0.0.1",
2+
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema",
3+
"id": "ACE_07",
4+
"category": "Item",
5+
"description": {
6+
"en": "Q7 of the Adverse Childhood Experiences Scale"
7+
},
98
"question": {
109
"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?"
1110
},
11+
"schemaVersion": "1.0.0",
12+
"version": "0.0.1",
1213
"ui": {
1314
"inputType": "radio"
1415
},
15-
"responseOptions": "../valueConstraints"
16+
"responseOptions": "../valueConstraints",
17+
"prefLabel": {
18+
"en": "ACE Q7"
19+
}
1620
}

0 commit comments

Comments
 (0)