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

fix: update URL patterns to match schema.org #439

Merged
merged 3 commits into from
Mar 21, 2021
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions contexts/generic
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"imageUrl": {
"@id": "schema:image",
"@type": "xsd:anyURI"
"@type": "@id"
},
"audio": {
"@id": "schema:audio"
Expand All @@ -29,7 +29,7 @@
},
"contentUrl": {
"@id": "schema:contentUrl",
"@type": "xsd:anyURI"
"@type": "@id"
},
"VideoObject": "schema:VideoObject",
"AudioObject": "schema:AudioObject",
Expand All @@ -38,19 +38,17 @@
},
"url": {
"@id": "schema:url",
"@type": "xsd:anyURI"
"@type": "@id"
},
"citation": {
"@id": "schema:citation",
"@container": "@language"
},
"version": {
"@id": "schema:version",
"@container": "@language"
"@id": "schema:version"
},
"schemaVersion": {
"@id": "schema:schemaVersion",
"@container": "@language"
"@id": "schema:schemaVersion"
},
"prefLabel": {
"@id": "skos:prefLabel",
Expand All @@ -71,7 +69,7 @@
},
"landingPage": {
"@id": "reproschema:landingPage",
"@type": "xsd:anyURI",
"@type": "@id",
"@container": "@set"
},
"question": {
Expand Down
16 changes: 11 additions & 5 deletions examples/activities/activity1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@id": "activity1.jsonld",
"prefLabel": "Example 1",
"description": "Activity example 1",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
"image": {
Expand All @@ -17,8 +17,8 @@
},
"compute": [
{
"variableName": "phq9_total_score",
"jsExpression": "phq9_1 + phq9_2 + phq9_3 + phq9_4 + phq9_5 + phq9_6 + phq9_7 + phq9_8 + phq9_9"
"variableName": "activity1_total_score",
"jsExpression": "item1 + item2"
}
],
"messages": [
Expand All @@ -42,12 +42,18 @@
"requiredValue": true,
"isVis": true,
"allow": ["reproschema:Skipped"]
},
{ "isAbout": "items/activity1_total_score",
"variableName": "activity1_total_score",
"requiredValue": true,
"isVis": false
}
],
"order": [
"items/item1.jsonld",
"items/item2.jsonld"
"items/item2.jsonld",
"items/activity1_total_score"
],
"shuffle": false
}
}
}
4 changes: 2 additions & 2 deletions examples/activities/activity1_embed.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@id": "activity1.jsonld",
"prefLabel": "Example 1",
"description": "Activity example 1",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
"preamble": {
Expand All @@ -24,7 +24,7 @@
"@id": "items/item1.jsonld",
"prefLabel": "item1",
"description": "Q1 of example 1",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"question": {
"en": "Little interest or pleasure in doing things",
Expand Down
18 changes: 18 additions & 0 deletions examples/activities/items/activity1_total_score
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": "../../../contexts/generic",
"@type": "reproschema:Field",
"@id": "activity1_total_score",
"prefLabel": "activity1_total_score",
"description": "Score item for Activity 1",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"ui": {
"inputType": "number",
"readonlyValue": true
},
"responseOptions": {
"valueType": "xsd:integer",
"minValue": 0,
"maxValue": 3
}
}
2 changes: 1 addition & 1 deletion examples/activities/items/item1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@id": "item1.jsonld",
"prefLabel": "item1",
"description": "Q1 of example 1",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"audio": {
"@type": "AudioObject",
Expand Down
5 changes: 1 addition & 4 deletions examples/activities/items/item2.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@id": "item2.jsonld",
"prefLabel": "item2",
"description": "Q2 of example 1",
"schemaVersion": "0.0.1",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"question": {
"en": "Current temperature.",
Expand Down Expand Up @@ -38,6 +38,3 @@
]
}
}



5 changes: 3 additions & 2 deletions examples/protocols/protocol1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"es": "Protocol1_es"
},
"description": "example Protocol",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"landingPage": "http://example.com/sample-readme.md",
"landingPage": {"@id": "http://example.com/sample-readme.md",
"inLanguage": "en"},
"messages": [
{
"message": "Test message: Triggered when item1 value is greater than 0",
Expand Down
6 changes: 3 additions & 3 deletions examples/protocols/protocol1_embed.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"es": "Protocol1_es"
},
"description": "example Protocol",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"ui": {
"addProperties": [
Expand All @@ -27,7 +27,7 @@
"@id": "../activities/activity1.jsonld",
"prefLabel": "Example 1",
"description": "Activity example 1",
"schemaVersion": "1.0.0-rc1.post",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"citation": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC1495268/",
"preamble": {
Expand All @@ -49,7 +49,7 @@
"@id": "../activities/items/item1.jsonld",
"prefLabel": "item1",
"description": "Q1 of example 1",
"schemaVersion": "0.0.1",
"schemaVersion": "1.0.0-rc4",
"version": "0.0.1",
"question": {
"en": "Little interest or pleasure in doing things",
Expand Down
18 changes: 18 additions & 0 deletions releases/1.0.0-rc4/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"prov": "http://www.w3.org/ns/prov#",
"pav": "http://purl.org/pav/",
"nidm": "http://purl.org/nidash/nidm#",
"uuid": "http://uuid.repronim.org/",
"reproschema": "http://schema.repronim.org/"
}
}
Loading