Skip to content

Commit

Permalink
Bump rdflib requirement, fix removed method
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Apr 18, 2024
1 parent 9787740 commit 6772765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/dcat/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def _distribution_format(self, distribution, normalize_ckan_format=True):
if self._object(_format, RDF.type) == DCT.IMT:
if not imt:
imt = str(self.g.value(_format, default=None))
label = str(self.g.label(_format, default=None))
label = self._object_value(_format, RDFS.label)
elif isinstance(_format, URIRef):
# If the URIRef does not reference a BNode, it could reference an IANA type.
# Otherwise, use it as label.
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rdflib==6.1.1
rdflib>=6.1.1,<7.1.0
geomet>=0.2.0
ckantoolkit>=0.0.7
future>=0.18.2
future>=0.18.2

0 comments on commit 6772765

Please sign in to comment.