From 48e046dcaf38f8cab33e0290c4b17d4b65dd7b86 Mon Sep 17 00:00:00 2001 From: Grzegorz Kostkowski Date: Wed, 18 Sep 2024 16:29:58 +0200 Subject: [PATCH] Remove connector specification appended to a definition, make minor improvements to a definition content and format Generated values of `skos:definition` don't include a connector specification (like `((org:Organization -> at-voc:main-activity (+epo:hasMainActivity))`) anymore. As the removed suffix was in some cases what made definitions of a term different, the need to filter out duplicates arised (what is included in this change). Moreover, some minor format improvements has been introduced. --- src/owl-core-lib/connectors-owl-core.xsl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/owl-core-lib/connectors-owl-core.xsl b/src/owl-core-lib/connectors-owl-core.xsl index 63b1a56..6c9caa0 100644 --- a/src/owl-core-lib/connectors-owl-core.xsl +++ b/src/owl-core-lib/connectors-owl-core.xsl @@ -234,15 +234,17 @@ + fn:distinct-values( + for $connector in $connectorsWithSameName + return + if ($connector/documentation/@value) then + fn:normalize-space($connector/documentation/@value) + else + () + )"/> + select="fn:normalize-space(f:formatDocString(fn:string-join($connectorDocumentations, ' ')))"/>