Skip to content

Commit f3d6ed2

Browse files
committed
update schema/validator
1 parent c4147b3 commit f3d6ed2

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

reproschema/tests/contexts/generic

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
"@id": "schema:readonlyValue",
117117
"@nest": "ui"
118118
},
119-
"scoringLogic": {
120-
"@id": "reproschema:scoringLogic",
119+
"compute": {
120+
"@id": "reproschema:compute",
121121
"@container": "@index"
122122
},
123123
"jsExpression": {

reproschema/tests/data/activities/activity1.jsonld

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"en": "Over the last 2 weeks, how often have you been bothered by any of the following problems?",
1212
"es": "Durante las últimas 2 semanas, ¿con qué frecuencia le han molestado los siguintes problemas?"
1313
},
14+
"compute": [
15+
{
16+
"variableName": "phq9_total_score",
17+
"jsExpression": "phq9_1 + phq9_2 + phq9_3 + phq9_4 + phq9_5 + phq9_6 + phq9_7 + phq9_8 + phq9_9"
18+
}
19+
],
1420
"ui": {
1521
"addProperties": [
1622
{ "isAbout": "items/item1.jsonld",

reproschema/tests/reproschema-shacl.ttl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ reproschema:ActivityShape a sh:NodeShape ;
3131
[ sh:datatype rdf:langString ;
3232
sh:path reproschema:preamble ],
3333

34-
[ sh:node reproschema:ScoringShape ;
35-
sh:path reproschema:scoringLogic ],
34+
[ sh:node reproschema:ComputeSpecificationShape ;
35+
sh:path reproschema:compute ],
3636

3737
[ sh:maxCount 1 ;
3838
sh:node dash:ListShape ;
@@ -126,8 +126,8 @@ reproschema:ProtocolShape a sh:NodeShape ;
126126
[ sh:datatype rdf:langString ;
127127
sh:path reproschema:preamble ],
128128

129-
[ sh:node reproschema:ScoringShape ;
130-
sh:path reproschema:scoringLogic ],
129+
[ sh:node reproschema:ComputeSpecificationShape ;
130+
sh:path reproschema:compute ],
131131

132132
[ sh:minCount 1 ;
133133
sh:node dash:ListShape ;
@@ -229,7 +229,7 @@ reproschema:IsVisShape a sh:NodeShape ;
229229
sh:minCount 1 ;
230230
sh:path reproschema:payload ] .
231231

232-
reproschema:ScoringShape a sh:NodeShape ;
232+
reproschema:ComputeSpecificationShape a sh:NodeShape ;
233233
sh:closed true ;
234234
sh:ignoredProperties ( rdf:type ) ;
235235
sh:property [ sh:datatype rdf:langString ;

0 commit comments

Comments
 (0)