Skip to content

Commit afcfa8d

Browse files
committed
test: add mandatory fields, files for MSSDK model compliance
- description metadata field is required - validation prerequisite file shacl_result_query.rq is required
1 parent 078b08c commit afcfa8d

8 files changed

Lines changed: 37 additions & 3 deletions

File tree

test/test_data/notice_transformer/mapping_package_processor_repository/test_package/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"title": "no_title",
33
"created_at": "2022-03-20T19:46:14.069518",
44
"identifier": "test_package",
5+
"description": "no_description",
56
"version": "0.1",
6-
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
7+
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
78
"ontology_version": "3.0.0.alpha",
89
"metadata_constraints": {
910
"constraints": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
prefix dash: <http://datashapes.org/dash#>
2+
prefix sh: <http://www.w3.org/ns/shacl#>
3+
prefix message: <http://www.w3.org/ns/shacl#message>
4+
5+
SELECT ?focusNode ?message ?resultPath ?resultSeverity ?sourceConstraintComponent ?sourceShape ?value
6+
WHERE {
7+
?vr a sh:ValidationResult .
8+
?vr sh:focusNode ?focusNode .
9+
OPTIONAL {
10+
?vr sh:resultMessage ?message .
11+
}
12+
OPTIONAL {
13+
?vr sh:resultPath ?resultPath .
14+
}
15+
OPTIONAL {
16+
?vr sh:resultSeverity ?resultSeverity .
17+
}
18+
OPTIONAL {
19+
?vr sh:sourceConstraintComponent ?sourceConstraintComponent .
20+
}
21+
OPTIONAL {
22+
?vr sh:sourceShape ?sourceShape .
23+
}
24+
OPTIONAL {
25+
?vr sh:value ?value .
26+
}
27+
}
28+
ORDER BY ?focusNode ?resultSeverity ?sourceConstraintComponent

test/test_data/notice_transformer/test_repository/test_package/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"title": "no_title",
33
"created_at": "2022-03-20T19:46:14.069518",
44
"identifier": "test_package",
5+
"description": "no_description",
56
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
67
"version": "1.0.1",
78
"ontology_version": "3.0.0.alpha",

test/test_data/notice_transformer/test_repository/test_package2/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"created_at": "2022-03-20T19:46:14.069518",
44
"identifier": "test_package2",
55
"version": "2.1.6",
6-
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
6+
"description": "no_description",
7+
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
78
"ontology_version": "3.0.0.alpha",
89
"metadata_constraints": {
910
"constraints": {

test/test_data/notice_transformer/test_repository/test_package3/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"title": "no_title",
33
"created_at": "2022-03-20T19:46:14.069518",
44
"identifier": "test_package3",
5+
"description": "no_description",
56
"version": "3.1.6",
67
"ontology_version": "3.0.0.alpha",
78
"mapping_suite_hash_digest": "1740b31999a492bbe80122f766f8d4c1dd7a3f720b95337a88a10cf673ceb223",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"title": "F03", "identifier": "F03", "created_at": "2022-04-29T16:41:52.018830", "version": "0.0.1", "ontology_version": "3.0.0.alpha", "xsd_version": "R2.0.9.S05.E01", "metadata_constraints": {"constraints": {"form_number": ["F03"], "legal_basis": ["*"], "year": ["*"], "notice_type": [], "form_type": []}}}
1+
{"title": "F03", "description": "no_description", "identifier": "F03", "created_at": "2022-04-29T16:41:52.018830", "version": "0.0.1", "ontology_version": "3.0.0.alpha", "xsd_version": "R2.0.9.S05.E01", "metadata_constraints": {"constraints": {"form_number": ["F03"], "legal_basis": ["*"], "year": ["*"], "notice_type": [], "form_type": []}}}

test/test_data/notice_validator/test_repository/test_package_F03/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "F03",
3+
"description": "no_description",
34
"identifier": "test_package_F03",
45
"created_at": "2022-04-29T16:41:52.018830",
56
"version": "0.0.1",

test/test_data/notice_validator/test_repository/test_sparql_package/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "F03",
3+
"description": "no_description",
34
"identifier": "F03",
45
"created_at": "2022-04-29T16:41:52.018830",
56
"version": "0.0.1",

0 commit comments

Comments
 (0)