Skip to content

add a static item and update contexts to 1.0.0 #26

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

Merged
merged 10 commits into from
Aug 8, 2024
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
4 changes: 2 additions & 2 deletions DemoProtocol/DemoProtocol_schema
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Protocol",
"@id": "DemoProtocol_schema",
"prefLabel": {
"en": "Protocol1",
"es": "Protocol1_es"
},
"description": "example Protocol",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"landingPage": [{
"@id": "README.md",
Expand Down
10 changes: 7 additions & 3 deletions activities/Activity1/activity1_schema
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@context": [ "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": [ "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
{
"rl": "https://raw.githubusercontent.com/ReproNim/reproschema-library/master/activities/"
}
Expand All @@ -8,10 +8,14 @@
"@id": "activity1_schema",
"prefLabel": "Screening",
"description": "example of an activity",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
{"isAbout": "items/static_item",
"variableName": "static_item",
"isVis": true
},
{"isAbout": "items/document_upload_item",
"variableName": "document_upload_item",
"isVis": true,
Expand All @@ -21,11 +25,11 @@
}
],
"order": [
"items/static_item",
"items/document_upload_item"
],
"shuffle": false,
"allow": [
"reproschema:AutoAdvance",
"reproschema:AllowExport"
]
}
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity1/items/document_upload_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "document_upload_item",
"prefLabel": "document upload item",
"description": "This is a document upload item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can upload a document.",
"ui": {
Expand Down
16 changes: 16 additions & 0 deletions activities/Activity1/items/static_item
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "static_item",
"prefLabel": "Static text",
"description": "Display a static text",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": {
"en": "You are starting today's activity"
},
"ui": {
"inputType": "static",
"readonlyValue": true
}
}
4 changes: 2 additions & 2 deletions activities/Activity2/Activity2_schema
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "Activity2_schema",
"prefLabel": "demo of all input types and widgets",
"description": "dummy activity to show all inputs types and widgets",
"preamble": "This activity will show you all the different input type and widgets currently available.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
Expand Down
5 changes: 2 additions & 3 deletions activities/Activity2/items/country_item
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "country_item",
"prefLabel": "country item",
"description": "This is a country item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can select a country.",
"ui": {
"inputType": "selectCountry"
},
"responseOptions": {
"valueType": "xsd:string",
"maxLength": 50,
"choices": "https://raw.githubusercontent.com/samayo/country-json/master/src/country-by-name.json"
}
}
4 changes: 2 additions & 2 deletions activities/Activity2/items/date_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "date_item",
"prefLabel": "date item",
"description": "This is a date item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input a date.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity2/items/language_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "language_item",
"prefLabel": "language item",
"description": "This is a language item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can select several language.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity2/items/state_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "state_item",
"prefLabel": "state item",
"description": "This is a state item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can select a USA state.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity2/items/time_range_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "time_range_item",
"prefLabel": "time range item",
"description": "This is a time range item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input a time range.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity2/items/year_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "year_item",
"prefLabel": "year item",
"description": "This is a year item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input a year.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity3/Activity3_schema
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "Activity3_schema",
"prefLabel": "demo of all input types and widgets",
"description": "dummy activity to show all inputs types and widgets",
"preamble": "This activity will show you all the different input type and widgets currently available.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity3/items/email_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "email_item",
"prefLabel": "email item",
"description": "This is an email item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input an email address.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity3/items/float_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "float_item",
"prefLabel": "float item",
"description": "This is a float item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input a float like 3.1415926...",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity3/items/integer_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "integer_item",
"prefLabel": "integer item",
"description": "This is a integer item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input a integer like 3, -4 or 321...",
"ui": {
Expand Down
7 changes: 3 additions & 4 deletions activities/Activity3/items/multitext_item
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "multitext_item",
"prefLabel": "multitext item",
"description": "This is a multitext item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input several text field.",
"ui": {
"inputType": "multitext"
},
"responseOptions": {
"valueType": "xsd:string",
"maxLength": 300
"valueType": "xsd:string"
}
}
4 changes: 2 additions & 2 deletions activities/Activity3/items/participant_id_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "participant_id_item",
"prefLabel": "participant id item",
"description": "This is a participant id item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input the participant id number.",
"ui": {
Expand Down
7 changes: 3 additions & 4 deletions activities/Activity3/items/text_item
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "text_item",
"prefLabel": "text item",
"description": "This is a text item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input some text with a max length of 300.",
"ui": {
"inputType": "text"
},
"responseOptions": {
"valueType": "xsd:string",
"maxLength": 300
"valueType": "xsd:string"
}
}
7 changes: 3 additions & 4 deletions activities/Activity3/items/textarea_item
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "textarea_item",
"prefLabel": "text area item",
"description": "This is a text area item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can input large amounts of text.",
"ui": {
"inputType": "textarea"
},
"responseOptions": {
"valueType": "xsd:string",
"maxLength": 300
"valueType": "xsd:string"
}
}
4 changes: 2 additions & 2 deletions activities/Activity4/Activity4_schema
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc1/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Activity",
"@id": "Activity4_schema",
"prefLabel": "demo of all input types and widgets",
"description": "dummy activity to show all inputs types and widgets",
"preamble": "This activity will show you all the different input type and widgets currently available.",
"schemaVersion": "1.0.0-rc1",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"ui": {
"addProperties": [
Expand Down
4 changes: 2 additions & 2 deletions activities/Activity4/items/sign_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "sign_item",
"prefLabel": "sign item",
"description": "This is a sign item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an item where the user can sign.",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/selectActivity/items/radio_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "radio_item",
"prefLabel": "radio item",
"description": "This is a radio item.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a radio item with several possible answers to choose from (only one answer allowed).",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/selectActivity/items/radio_item_multiple_choice
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "radio_item_multiple_choice",
"prefLabel": "radio item with multiple choice",
"description": "This is a radio item with multiple choice.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a radio item with several possible answers to choose from (several answers allowed).",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/selectActivity/items/select_item
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "select_item",
"prefLabel": "select item",
"description": "This is a select item that works with a drop down menu.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a select item with several possible answers to choose from a dropdown menu (only one answer allowed).",
"ui": {
Expand Down
4 changes: 2 additions & 2 deletions activities/selectActivity/items/select_item_multiple_choice
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0-rc2/contexts/generic",
"@context": "https://raw.githubusercontent.com/ReproNim/reproschema/1.0.0/contexts/reproschema",
"@type": "reproschema:Field",
"@id": "select_item_multiple_choice",
"prefLabel": "select item multiple choice",
"description": "This is a select item that works with a drop down menu.",
"schemaVersion": "1.0.0-rc2",
"schemaVersion": "1.0.0",
"version": "0.0.1",
"question": "This is an example of a select item with several possible answers to choose from a dropdown menu (several answers allowed).",
"ui": {
Expand Down
Loading