From 149bdf9bb28d9e451fed2f8ab77511a0036027a7 Mon Sep 17 00:00:00 2001 From: Erika Pauwels Date: Thu, 28 Jan 2016 15:09:49 +0100 Subject: [PATCH] Fix namespace of contactpoint in DCAT feed contactPoint is a property in the DCAT namespace according to the specifications. See https://www.w3.org/TR/vocab-dcat/#Property:dataset_contactPoint. --- app/Tdt/Core/Repositories/DcatRepository.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Tdt/Core/Repositories/DcatRepository.php b/app/Tdt/Core/Repositories/DcatRepository.php index fbf4acaf..8f5ab302 100644 --- a/app/Tdt/Core/Repositories/DcatRepository.php +++ b/app/Tdt/Core/Repositories/DcatRepository.php @@ -37,8 +37,6 @@ public function getDcatDocument(array $definitions, $oldest_definition) // Create a new EasyRDF graph $graph = new \EasyRdf_Graph(); - \EasyRdf_Namespace::set('adms', 'http://www.w3.org/ns/adms#'); - $all_settings = $this->settings->getAll(); $uri = \Request::root(); @@ -105,7 +103,7 @@ public function getDcatDocument(array $definitions, $oldest_definition) // Backwards compatibility if (!empty($definition['contact_point'])) { - $graph->addResource($dataset_uri, 'adms:contactPoint', $definition['contact_point']); + $graph->addResource($dataset_uri, 'dcat:contactPoint', $definition['contact_point']); } // Add the publisher resource to the dataset