Skip to content

Commit

Permalink
Rename example files
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Oct 7, 2024
1 parent effa3f6 commit e760188
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckanext/dcat/tests/shacl/test_shacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _results_count(results_graph):
)
def test_validate_dcat_ap_2_graph_shapes():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap.json")

# dcat-ap_2.1.1_shacl_shapes.ttl: constraints concerning existance, domain and
# literal range, and cardinalities.
Expand All @@ -84,7 +84,7 @@ def test_validate_dcat_ap_2_graph_shapes():
)
def test_validate_dcat_ap_2_graph_shapes_recommended():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap.json")

# dcat-ap_2.1.1_shacl_shapes_recommended.ttl: constraints concerning existance
# of recommended properties.
Expand All @@ -99,7 +99,7 @@ def test_validate_dcat_ap_2_graph_shapes_recommended():
@pytest.mark.ckan_config("ckanext.dcat.rdf.profiles", "euro_dcat_ap_2")
def test_validate_dcat_ap_2_legacy_graph_shapes():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2_legacy.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap_legacy.json")

# dcat-ap_2.1.1_shacl_shapes.ttl: constraints concerning existance, domain and
# literal range, and cardinalities.
Expand All @@ -114,7 +114,7 @@ def test_validate_dcat_ap_2_legacy_graph_shapes():
@pytest.mark.ckan_config("ckanext.dcat.rdf.profiles", "euro_dcat_ap_2")
def test_validate_dcat_ap_2_legacy_graph_shapes_recommended():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2_legacy.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap_legacy.json")

# dcat-ap_2.1.1_shacl_shapes_recommended.ttl: constraints concerning existance
# of recommended properties.
Expand All @@ -138,7 +138,7 @@ def test_validate_dcat_ap_2_legacy_graph_shapes_recommended():
)
def test_validate_dcat_ap_2_graph_shapes_range():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2_vocabularies.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap_vocabularies.json")

# dcat-ap_2.1.1_shacl_range.ttl: constraints concerning object range
path = _get_shacl_file_path("dcat-ap_2.1.1_shacl_range.ttl")
Expand Down Expand Up @@ -176,7 +176,7 @@ def test_validate_dcat_ap_2_graph_shapes_range():
@pytest.mark.ckan_config("ckanext.dcat.rdf.profiles", "euro_dcat_ap_3")
def test_validate_dcat_ap_3_graph():

graph = graph_from_dataset("ckan_full_dataset_dcat_ap_2_vocabularies.json")
graph = graph_from_dataset("ckan_full_dataset_dcat_ap_vocabularies.json")

path = _get_shacl_file_path("dcat-ap_3_shacl_shapes.ttl")
r = validate(graph, shacl_graph=path)
Expand Down

0 comments on commit e760188

Please sign in to comment.