From b5c6a37841d7015c39b24a8b41558e33077ee321 Mon Sep 17 00:00:00 2001
From: Benjamin Becker <benjamin.becker@dataport.de>
Date: Tue, 23 Jul 2019 14:53:26 +0000
Subject: [PATCH] adds dcd:subject to dcat rdf export, needs update of dcatde
 to 3.3.0

---
 ckanext/odsh/profiles.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ckanext/odsh/profiles.py b/ckanext/odsh/profiles.py
index f2bb7090..3dac09f2 100644
--- a/ckanext/odsh/profiles.py
+++ b/ckanext/odsh/profiles.py
@@ -118,6 +118,10 @@ class ODSHDCATdeProfile(DCATdeProfile):
                 for dist in self.g.objects(dataset_ref, DCAT.distribution):
                     self.g.set(
                         (dist, DCATDE.licenseAttributionByText, rdflib.Literal(attr)))
+        
+        dct_subject_url = self._get_dataset_value(dataset_dict, 'subject')
+        items = [('subject', DCT.subject, dct_subject_url, rdflib.Literal)]
+        self._add_triples_from_dict(dataset_dict, dataset_ref, items)
 
 
 _RESOURCE_FORMATS_IMPORT = None
-- 
GitLab