Skip to content

Commit

Permalink
Remove connector specification appended to a definition, make minor i…
Browse files Browse the repository at this point in the history
…mprovements 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.
  • Loading branch information
gkostkowski committed Sep 18, 2024
1 parent ca63046 commit 48e046d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/owl-core-lib/connectors-owl-core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,17 @@

<xsl:variable name="connectorDocumentations" as="xs:string*"
select="
for $connector in $connectorsWithSameName
return
if ($connector/documentation/@value) then
fn:concat($connector/documentation/@value, ' (', f:getConnectorName($connector), ') ')
else
()"/>
fn:distinct-values(
for $connector in $connectorsWithSameName
return
if ($connector/documentation/@value) then
fn:normalize-space($connector/documentation/@value)
else
()
)"/>

<xsl:variable name="documentation"
select="fn:normalize-space(f:formatDocString(fn:string-join($connectorDocumentations)))"/>
select="fn:normalize-space(f:formatDocString(fn:string-join($connectorDocumentations, ' ')))"/>

<xsl:variable name="connectorNotes" as="xs:string*"
select="
Expand Down

0 comments on commit 48e046d

Please sign in to comment.