From 38b7552f65a10f5eb8b47cd91714295f26a9746c Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Mon, 28 Oct 2024 09:19:25 +0100 Subject: [PATCH] fix: multilang title --- .changeset/happy-owls-march.md | 5 +++++ apis/core/bootstrap/shapes/dataset.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/happy-owls-march.md diff --git a/.changeset/happy-owls-march.md b/.changeset/happy-owls-march.md new file mode 100644 index 000000000..c4d1a6713 --- /dev/null +++ b/.changeset/happy-owls-march.md @@ -0,0 +1,5 @@ +--- +"@cube-creator/core-api": patch +--- + +OpenDataSwiss resource title should allow more than one value (one for each language) diff --git a/apis/core/bootstrap/shapes/dataset.ts b/apis/core/bootstrap/shapes/dataset.ts index f1de83575..5b5095578 100644 --- a/apis/core/bootstrap/shapes/dataset.ts +++ b/apis/core/bootstrap/shapes/dataset.ts @@ -452,16 +452,17 @@ ${shapeId} { ] , [ ${sh.name} "Title" ; ${sh.path} ${dcterms.title} ; - ${sh.maxCount} 1 ; ${sh.order} 30 ; ${sh.datatype} ${rdf.langString} ; ${sh.languageIn} ( ${supportedLanguages} ) ; + ${sh.uniqueLang} true ; ] , [ ${sh.name} "Description" ; ${sh.path} ${dcterms.description} ; ${sh.order} 40 ; ${sh.datatype} ${rdf.langString} ; ${sh.languageIn} ( ${supportedLanguages} ) ; + ${sh.uniqueLang} true ; ] , [ ${sh.name} "Media type" ; ${sh.path} ${dcat.mediaType} ;