Skip to content

Commit

Permalink
[#56] Fix function call
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jun 11, 2024
1 parent 030cd3d commit 5fffa15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ckanext/dcat/profiles/euro_dcat_ap_scheming.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ def graph_from_dataset(self, dataset_dict, dataset_ref):

self._add_triple_from_dict(publisher, publisher_ref, FOAF.name, "name")
self._add_triple_from_dict(
publisher, publisher_ref, FOAF.homepage, "url", URIRef
publisher, publisher_ref, FOAF.homepage, "url", _type=URIRef
)
self._add_triple_from_dict(
publisher, publisher_ref, DCT.type, "type", URIRefOrLiteral
publisher, publisher_ref, DCT.type, "type", _type=URIRefOrLiteral
)
self._add_triple_from_dict(
publisher,
Expand Down
2 changes: 1 addition & 1 deletion ckanext/dcat/tests/test_scheming_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def test_e2e_ckan_to_dcat(self):
g,
publisher[0][2],
FOAF.homepage,
dataset_dict["publisher"][0]["url"],
URIRef(dataset_dict["publisher"][0]["url"]),
)
assert self._triple(
g,
Expand Down

0 comments on commit 5fffa15

Please sign in to comment.