Skip to content

Commit 2db71da

Browse files
authored
Merge pull request #6 from satra/enh-match-1.0.0-rc1
enh: update to 1.0.0-rc1
2 parents e224cc7 + 9650a79 commit 2db71da

File tree

11 files changed

+182
-123
lines changed

11 files changed

+182
-123
lines changed

reproschema/tests/contexts/base

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"prov": "http://www.w3.org/ns/prov#",
1313
"pav": "http://purl.org/pav/",
1414
"nidm": "http://purl.org/nidash/nidm#",
15+
"uuid": "http://uuid.repronim.org/",
1516
"reproschema": "http://schema.repronim.org/"
1617
}
1718
}

reproschema/tests/contexts/generic

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"@id": "schema:image",
2121
"@type": "@id"
2222
},
23+
"inLanguage": {
24+
"@id": "schema:inLanguage"
25+
},
26+
"url": {
27+
"@id": "schema:url",
28+
"@type": "@id"
29+
},
2330
"citation": {
2431
"@id": "schema:citation",
2532
"@container": "@language"
@@ -209,6 +216,32 @@
209216
"derivedFrom": {
210217
"@id": "prov:wasDerivedFrom",
211218
"@type": "@id"
219+
},
220+
"used": {
221+
"@id": "prov:used",
222+
"@container": "@set",
223+
"@type": "@id"
224+
},
225+
"wasAttributedTo": {
226+
"@id": "prov:wasAttributedTo",
227+
"@type": "reproschema:Participant",
228+
"@container": "@set"
229+
},
230+
"wasAssociatedWith": {
231+
"@id": "prov:wasAssociatedWith",
232+
"@type": "reproschema:SoftwareAgent",
233+
"@container": "@set"
234+
},
235+
"subject_id": {
236+
"@id": "nidm:subject_id"
237+
},
238+
"startedAtTime": {
239+
"@id": "prov:startedAtTime",
240+
"@type": "xsd:dateTime"
241+
},
242+
"endedAtTime": {
243+
"@id": "prov:endedAtTime",
244+
"@type": "xsd:dateTime"
212245
}
213246
}
214247
]

reproschema/tests/data/activities/activity1.jsonld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@id": "activity1.jsonld",
55
"prefLabel": "Example 1",
66
"description": "Activity example 1",
7-
"schemaVersion": "0.0.1",
7+
"schemaVersion": "1.0.0-rc1.post",
88
"version": "0.0.1",
99
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
1010
"preamble": {
@@ -23,9 +23,9 @@
2323
"variableName": "item1",
2424
"requiredValue": true,
2525
"isVis": true,
26-
"randomMaxDelay": "2:0:0",
27-
"limit": "2-0",
28-
"schedule": "0 8 * * *"
26+
"randomMaxDelay": "PT2H",
27+
"limit": "P2D",
28+
"schedule": "R/2020-08-01T08:00:00Z/P1D"
2929
}
3030
],
3131
"order": [

reproschema/tests/data/activities/activity1_embed.jsonld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@id": "activity1.jsonld",
55
"prefLabel": "Example 1",
66
"description": "Activity example 1",
7-
"schemaVersion": "0.0.1",
7+
"schemaVersion": "1.0.0-rc1.post",
88
"version": "0.0.1",
99
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
1010
"preamble": {
@@ -24,7 +24,7 @@
2424
"@id": "items/item1.jsonld",
2525
"prefLabel": "item1",
2626
"description": "Q1 of example 1",
27-
"schemaVersion": "0.0.1",
27+
"schemaVersion": "1.0.0-rc1.post",
2828
"version": "0.0.1",
2929
"question": {
3030
"en": "Little interest or pleasure in doing things",

reproschema/tests/data/activities/items/item1.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@id": "item1.jsonld",
55
"prefLabel": "item1",
66
"description": "Q1 of example 1",
7-
"schemaVersion": "0.0.1",
7+
"schemaVersion": "1.0.0-rc1.post",
88
"version": "0.0.1",
99
"question": {
1010
"en": "Little interest or pleasure in doing things",

reproschema/tests/data/protocols/protocol1.jsonld

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"@context": "../../contexts/generic",
2+
"@context": "../../contexts/generic",
33
"@type": "reproschema:Protocol",
44
"@id": "protocol1.jsonld",
55
"prefLabel": {
66
"en": "Protocol1",
77
"es": "Protocol1_es"
88
},
99
"description": "example Protocol",
10-
"schemaVersion": "0.0.1",
10+
"schemaVersion": "1.0.0-rc1.post",
1111
"version": "0.0.1",
1212
"ui": {
1313
"addProperties": [
@@ -18,7 +18,10 @@
1818
"en": "Screening",
1919
"es": "Screening_es"
2020
},
21-
"isVis": true
21+
"isVis": true,
22+
"schedule": "R5/2008-01-01T13:00:00Z/P1Y2M10DT2H30M",
23+
"randomMaxDelay": "PT12H",
24+
"limit": "P1W/2020-08-01T13:00:00Z"
2225
}
2326
],
2427
"order": [

reproschema/tests/data/protocols/protocol1_embed.jsonld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"@context": "../../contexts/generic",
2+
"@context": "../../contexts/generic",
33
"@type": "reproschema:Protocol",
44
"@id": "protocol1.jsonld",
55
"prefLabel": {
66
"en": "Protocol1",
77
"es": "Protocol1_es"
88
},
99
"description": "example Protocol",
10-
"schemaVersion": "0.0.1",
10+
"schemaVersion": "1.0.0-rc1.post",
1111
"version": "0.0.1",
1212
"ui": {
1313
"addProperties": [
@@ -27,7 +27,7 @@
2727
"@id": "../activities/activity1.jsonld",
2828
"prefLabel": "Example 1",
2929
"description": "Activity example 1",
30-
"schemaVersion": "0.0.1",
30+
"schemaVersion": "1.0.0-rc1.post",
3131
"version": "0.0.1",
3232
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
3333
"preamble": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"@context": "../../contexts/generic",
3+
"@type": "reproschema:Response",
4+
"@id": "uuid:fc963765-1f1b-4ad9-bc4b-0d21b9de5acb",
5+
"wasAttributedTo": {
6+
"@id": "uuid:2b0aab3d-495f-4eee-98a5-4284b3268a56",
7+
"subject_id": "6aabb03d-9e5f-ae5e-c4a5-21b9b326868a"
8+
},
9+
"isAbout": "../activities/items/item1.jsonld",
10+
"value": 1
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"@context": "../../contexts/generic",
3+
"@type": "reproschema:ResponseActivity",
4+
"@id": "uuid:96496a96-50d6-4b87-a65e-468420e7c80d",
5+
"used": [
6+
"../activities/items/item1.jsonld",
7+
"../activities/activity1.jsonld",
8+
"../protocols/protocol1.jsonld"
9+
],
10+
"inLanguage": "en",
11+
"startedAtTime": "2020-07-23T22:15:37.675Z",
12+
"endedAtTime": "2020-07-23T22:15:50.293Z",
13+
"wasAssociatedWith": {
14+
"version": "0.0.1",
15+
"url": "https://schema.repronim.org/ui/#/",
16+
"@id": "https://github.com/ReproNim/reproschema-ui"
17+
},
18+
"prov:generated": "uuid:85d18360-1787-4d3d-b72e-b543ca9b4b1a"
19+
}

0 commit comments

Comments
 (0)