File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
1
# python oeb-migrator.py --base_url https://openebench.bsc.es/api/scientific/ -cr oeb_api_auth_new.json --bdm-dir w3id-oeb-schemas --bdm-tag 2.0 --fetched-concept-dir MIG-1.0 --recipes ../benchmarking-data-model_2.0.x/json-schemas/from_1.0.x_to_2.0.x.yaml --output-dir MIG-2.0 --validate --concepts BenchmarkingEvent Challenge Community Contact Dataset Metrics Reference TestAction Tool
2
- # python oeb-migrator.py --base_url https://openebench.bsc.es/api/scientific/ -cr oeb_api_auth_new.json --bdm-dir w3id-oeb-schemas --bdm-tag 2.0 --recipes ../benchmarking-data-model_2.0.x/json-schemas/from_1.0.x_to_2.0.x.yaml --output-dir MIG-2.0 --validate --input MIG-1.0/Contact
2
+ # python oeb-migrator.py --base_url https://openebench.bsc.es/api/scientific/ -cr oeb_api_auth_new.json --bdm-dir w3id-oeb-schemas --bdm-tag 2.0 --recipes ../benchmarking-data-model_2.0.x/json-schemas/from_1.0.x_to_2.0.x.yaml --output-dir MIG-2.0 --validate --input MIG-1.0/Contact --input MIG-1.0/Community/ --input MIG-1.0/Tool/ --input MIG-1.0/Metrics/ --input MIG-1.0/BenchmarkingEvent/
3
3
- schema : https://www.elixir-europe.org/excelerate/WP2/json-schemas/1.0/BenchmarkingEvent
4
4
side_objects_paths :
5
5
contacts : MIG-1.0/Contact
8
8
"_id": $id
9
9
}
10
10
|
11
+ (
12
+ .bench_contact_ids | map(
13
+ $contacts[.].links[] | select(.label == "ORCID")
14
+ |
15
+ .uri
16
+ | ltrimstr("orcid:")
17
+ | ltrimstr("https://orcid.org/")
18
+ | "orcid:" + .
19
+ )
20
+ ) as $bench_contact_ids
21
+ |
11
22
. * {
12
23
"_id": $id,
13
- "_schema": "https://w3id.org/openebench/scientific-schemas/2.0/BenchmarkingEvent"
24
+ "_schema": "https://w3id.org/openebench/scientific-schemas/2.0/BenchmarkingEvent",
25
+ "bench_contact_ids": $bench_contact_ids
14
26
}
27
+ |
28
+ if .url then
29
+ . * {
30
+ "links": [
31
+ {
32
+ "uri": .url,
33
+ "label": "MainSite"
34
+ }
35
+ ]
36
+ }
37
+ |
38
+ del(.url)
39
+ end
15
40
- schema : https://www.elixir-europe.org/excelerate/WP2/json-schemas/1.0/Challenge
16
41
side_objects_paths :
17
42
contacts : MIG-1.0/Contact
You can’t perform that action at this time.
0 commit comments