Skip to content

Commit

Permalink
fix: Temporary use only dataset graph from platform
Browse files Browse the repository at this point in the history
We need to communicate to the publisher first before using the graph from the harvester source,
since there were many properties added to the shacl graph
  • Loading branch information
kovalch committed Apr 11, 2024
1 parent 2e6cf07 commit 3dfee10
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 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,13 @@ 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"
)
# 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 3dfee10

Please sign in to comment.