From 92915d8a0923674fed5770392cb3c4df62f23470 Mon Sep 17 00:00:00 2001 From: David de Boer Date: Mon, 22 Jan 2024 16:18:11 +0100 Subject: [PATCH] fix: Keyword property prefix (#855) --- shacl/register.ttl | 2 +- src/rate.ts | 2 +- test/datasets/dataset-dcat-valid.jsonld | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shacl/register.ttl b/shacl/register.ttl index 4d75e7bc..9d0b9819 100644 --- a/shacl/register.ttl +++ b/shacl/register.ttl @@ -374,7 +374,7 @@ dcat:DatasetShape sh:message "Dataset kan een laatste wijzigingsdatum hebben"@nl, "Dataset should have a last modified date"@en ; ], [ - sh:path dc:keyword ; + sh:path dcat:keyword ; sh:minCount 1 ; sh:severity sh:Info ; sh:message "Dataset kan trefwoorden hebben"@nl, "Dataset should have keywords"@en ; diff --git a/src/rate.ts b/src/rate.ts index 1aaf183d..f195d5fc 100644 --- a/src/rate.ts +++ b/src/rate.ts @@ -7,7 +7,7 @@ const penalties = new Map([ [[dct('creator')], 10], [[dct('created'), dct('issued')], 10], [[dct('modified')], 5], - [[dct('keyword'), dct('spatial'), dct('temporal')], 5], + [[dcat('keyword'), dct('spatial'), dct('temporal')], 5], [[dct('language')], 5], ]); diff --git a/test/datasets/dataset-dcat-valid.jsonld b/test/datasets/dataset-dcat-valid.jsonld index 35b832ec..5fc4c460 100644 --- a/test/datasets/dataset-dcat-valid.jsonld +++ b/test/datasets/dataset-dcat-valid.jsonld @@ -8,7 +8,7 @@ "@id": "http://data.bibliotheken.nl/id/dataset/rise-alba", "dct:title": "Alba amicorum van de Koninklijke Bibliotheek", "dct:description": "Just some dataset", - "dct:keyword": [ + "dcat:keyword": [ "alba amicorum" ], "dct:license": "http://creativecommons.org/publicdomain/zero/1.0/",