Skip to content

Commit

Permalink
feat: Export distribution property DCAT.accessService
Browse files Browse the repository at this point in the history
  • Loading branch information
bellisk committed Nov 7, 2023
1 parent c89013c commit 5488c69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckanext/dcatapchharvest/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,12 @@ def graph_from_dataset(self, dataset_dict, dataset_ref): # noqa
g.add((doc, RDF.type, FOAF.Document))
g.add((distribution, FOAF.page, doc))

# Access Services
access_services = resource_dict.get('access_services', [])
for uri in access_services:
ref = URIRef(uri)
g.add((distribution, DCAT.accessService, ref))

# Mime-Type
if resource_dict.get('mimetype'):
g.add((
Expand Down

0 comments on commit 5488c69

Please sign in to comment.