-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit_metrics_tests.sh
executable file
·93 lines (80 loc) · 9.71 KB
/
init_metrics_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# Collections are initialized auto when starting the API
# But Metrics Tests needs to be registered once the API started
## In prod:
# ./init_metrics_tests.sh https://api.fair-enough.semanticscience.org
if [ -z "$1" ]
then
API_URL=http://localhost
echo "No API_URL provided, defaulting to $API_URL"
else
API_URL=$1
fi
POST_TESTS_URL=$API_URL/metrics
# FAIR enough metrics
# TODO: replace with https://w3id.org/fair-enough/metrics
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a1-data-authorization"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a1-data-protocol"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a1-metadata-authorization"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a1-metadata-protocol"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a2-metadata-persistent"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f1-data-identifier-persistent"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f1-metadata-identifier-persistent"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f1-metadata-identifier-unique"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f2-grounded-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f2-structured-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f3-data-identifier-in-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f3-metadata-identifier-in-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f4-searchable"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-data-knowledge-representation-structured"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-data-knowledge-representation-semantic"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-metadata-knowledge-representation-structured"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-metadata-knowledge-representation-semantic"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i2-fair-vocabularies-known"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i2-fair-vocabularies-resolve"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i3-metadata-contains-outward-links"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/r1-includes-license"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/r1-includes-standard-license"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a1-access-protocol"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f1-unique-persistent-id"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f2-machine-readable-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f3-id-in-metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-metadata-knowledge-representation"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-metadata-knowledge-representation-weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-data-knowledge-representation"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i1-data-knowledge-representation-weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i2-fair-vocabularies"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/r1-accessible-license"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/f4-searchable"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/a2-metadata-longevity"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i3-check-sparl-endpoint"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i3-data-management-plan"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/i3-use-references"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/r2-detailed-provenance"}' -H "Content-Type: application/json" $POST_TESTS_URL
# curl -X POST -d '{"url": "https://w3id.org/fair-enough/metrics/tests/r3-meets-community-standards"}' -H "Content-Type: application/json" $POST_TESTS_URL
# Rare Disease metrics
curl -X POST -d '{"url": "https://w3id.org/rd-fairness-tests/tests/RD-F4"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/rd-fairness-tests/tests/RD-R1-3"}' -H "Content-Type: application/json" $POST_TESTS_URL
echo "######### FAIR Evaluator metrics #########"
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_unique_identifier"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_identifier_persistence"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_identifier_persistence"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_structured_metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_grounded_metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_authorization"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_identifier_in_metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_kr_language_strong"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_kr_language_weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_data_protocol"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_authorization"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_contains_outward_links"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_identifier_in_metadata"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_includes_license_strong"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_includes_license_weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_kr_language_strong"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_kr_language_weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_persistence"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_protocol"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_uses_fair_vocabularies_strong"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_metadata_uses_fair_vocabularies_weak"}' -H "Content-Type: application/json" $POST_TESTS_URL
curl -X POST -d '{"url": "https://w3id.org/FAIR_Tests/tests/gen2_searchable"}' -H "Content-Type: application/json" $POST_TESTS_URL