diff --git a/ckanext/odsh/profiles/odsh_dcat_de_profile.py b/ckanext/odsh/profiles/odsh_dcat_de_profile.py index 1f8063d34cf638f9505fc42baff34f4d634bd39a..517a66270f39437e6b180bb860aee0fa895ff14d 100644 --- a/ckanext/odsh/profiles/odsh_dcat_de_profile.py +++ b/ckanext/odsh/profiles/odsh_dcat_de_profile.py @@ -145,27 +145,6 @@ class ODSHDCATdeProfile(DCATdeProfile): created, datatype="http://www.w3.org/2001/XMLSchema#dateTime")) ) - def _add_modified_and_issued(self, dataset_dict, dataset_ref): - ''' - Adds distributions last_modified and created values to - dcat:modified and dcat:issued. - ''' - for distribution in self.g.objects(dataset_ref, DCAT.distribution): - for resource_dict in dataset_dict.get('resources', []): - # Match distribution in graph and distribution in ckan-dict - if str(distribution) == resource_uri(resource_dict): - last_modified = resource_dict.get('last_modified', None) - if last_modified: - self.g.set( - (distribution, DCT.modified, rdflib.Literal( - last_modified, datatype="http://www.w3.org/2001/XMLSchema#dateTime")) - ) - created = resource_dict.get('created', None) - if created: - self.g.set( - (distribution, DCT.issued, rdflib.Literal( - created, datatype="http://www.w3.org/2001/XMLSchema#dateTime")) - ) def _add_version(self, dataset_dict, dataset_ref): ''' Adds CKAN isReplacedBy extra field to dublin core isReplacedBy and sets version information.