|
11 | 11 | # where the metadata from neurovault are described. It is in xlsx folder of this repos |
12 | 12 | # but it can also be downloaded from here: |
13 | 13 | # https://github.com/NeuroVault/NeuroVault/blob/master/scripts/metadata_neurovault.csv |
14 | | -input_file = '/home/remi/github/COBIDAS_chckls/xlsx/metadata_neurovault-test.csv' |
| 14 | +input_file = '/home/remi/github/COBIDAS_chckls/xlsx/metadata_neurovault.csv' |
15 | 15 |
|
16 | 16 | # where the files will be written on your machine: the local repository |
17 | 17 | # corresponding to the remote where of the schema-standardization will be hosted |
|
24 | 24 | # to which branch of schema-standardization the user interface will be pointed to |
25 | 25 | # In the end the cobidas-UI repository will be reading the schema from the URL that that |
26 | 26 | # starts with: remote_repo + branch_name |
27 | | -branch_name = 'neurovault-test' |
| 27 | +branch_name = 'neurovault' |
| 28 | + |
| 29 | + |
| 30 | +ReproNim_repo = 'https://raw.githubusercontent.com/ReproNim/schema-standardization/master/' |
28 | 31 |
|
29 | 32 |
|
30 | 33 | ## ----------------------------------------------------------------------------- |
|
53 | 56 |
|
54 | 57 | # define the activity set neurovault_schema.jsonld |
55 | 58 | nv_set_schema_json = { |
56 | | - '@context': [ remote_repo + branch_name + '/contexts/generic.jsonld', |
| 59 | + '@context': [ ReproNim_repo + 'contexts/generic', |
57 | 60 | remote_repo + branch_name + '/activity-sets/' + activity_set_folder_name + '/' + activity_set_context_filename |
58 | 61 | ], |
59 | | - '@type': remote_repo + branch_name + '/schemas/ActivitySet.jsonld', |
| 62 | + '@type': ReproNim_repo + 'schemas/ActivitySet', |
60 | 63 | '@id': 'cobidas_schema', |
61 | 64 | 'skos:prefLabel': 'neurovault as a COBIDAS POC', |
62 | 65 | 'skos:altLabel': 'neurovault_COBIDAS_POC', |
63 | 66 | 'schema:description': 'neurovault as a COBIDAS checklist proof of concept', |
64 | 67 | 'schema:schemaVersion': version, |
65 | 68 | 'schema:version': version, |
| 69 | + 'schema:about': remote_repo + branch_name + '/activity-sets/' + '/README.md', |
66 | 70 | 'variableMap': [], |
67 | 71 | 'ui': { |
68 | 72 | 'order': [], |
|
126 | 130 | } |
127 | 131 |
|
128 | 132 | nv_schema_json = { |
129 | | - '@context': [ remote_repo + branch_name + '/contexts/generic.jsonld', |
| 133 | + '@context': [ ReproNim_repo + 'contexts/generic', |
130 | 134 | remote_repo + branch_name + '/activities/' + activity_folder_name + '/' + activity_context_filename |
131 | 135 | ], |
132 | | - '@type': remote_repo + branch_name + '/schemas/Activity.jsonld', |
| 136 | + '@type': ReproNim_repo + 'schemas/Activity', |
133 | 137 | '@id': activity_schema_name, |
134 | 138 | 'skos:prefLabel': 'COBIDAS design checklist', |
135 | 139 | 'skos:altLabel': 'cobidas_design_schema', |
136 | 140 | 'schema:description': 'COBIDAS design checklist schema', |
137 | 141 | 'schema:schemaVersion': version, |
138 | 142 | 'schema:version': version, |
139 | 143 | 'variableMap': [], |
140 | | - 'preamble': 'How did you design / analyse your study?', |
| 144 | + 'preamble': 'How did you design/analyse your study?', |
141 | 145 | 'ui': { |
142 | 146 | 'order': [], |
143 | 147 | 'visibility': {}, |
|
193 | 197 |
|
194 | 198 | # define jsonld for this item |
195 | 199 | item_json = { |
196 | | - '@context': [ remote_repo + branch_name + '/contexts/generic.jsonld', |
| 200 | + '@context': [ ReproNim_repo + 'contexts/generic', |
197 | 201 | remote_repo + branch_name + '/activities/' + activity_folder_name + '/' + activity_context_filename |
198 | 202 | ], |
199 | | - '@type': remote_repo + branch_name + '/schemas/Field.jsonld', |
| 203 | + '@type': ReproNim_repo + 'schemas/Field', |
200 | 204 | '@id': row[2], |
201 | 205 | 'skos:prefLabel': row[2], |
202 | 206 | 'skos:altLabel': row[2], |
|
0 commit comments