Skip to content

Commit

Permalink
Merge pull request #58 from opendata-swiss/temporary_use_only_platfor…
Browse files Browse the repository at this point in the history
…m_ds_graph

Temporary use only dataset graph from platform
  • Loading branch information
kovalch committed Apr 11, 2024
2 parents 2359c5a + d12b1df commit 826df10
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ckan_pkg_checker/checkers/shacl_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ def check_package(self, pkg):
"""Check one data package"""
pkg_type = pkg.get("pkg_type", utils.DCAT)
dataset_graph = None
if pkg.get("source_url"):
dataset_graph = rdf_utils.get_dataset_graph_from_source(
pkg["source_url"], pkg["identifier"]
)
utils.log_and_echo_msg(
f"--> rdf graph for Dataset{pkg.get('name')} taken from harvest source"
)
# todo: Reenable checking harvest source graph once changes have been communicated to publishers
# if pkg.get("source_url"):
# dataset_graph = rdf_utils.get_dataset_graph_from_source(
# pkg["source_url"], pkg["identifier"]
# )
# utils.log_and_echo_msg(
# f"--> rdf graph for Dataset{pkg.get('name')} taken from harvest source"
# )
if not dataset_graph:
pkg_dcat_serilization_url = utils.get_pkg_dcat_serialization_url(
self.siteurl, pkg["name"]
Expand Down

0 comments on commit 826df10

Please sign in to comment.