Skip to content

Commit

Permalink
Formatter / EU-DCAT-AP / Improve shacl validation status - only one d…
Browse files Browse the repository at this point in the history
…ct:type allowed.
  • Loading branch information
fxprunayre committed Dec 15, 2023
1 parent b85e1e5 commit d8b4c7a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
<xsl:if test="$dcmiType">
<dct:type rdf:resource="http://purl.org/dc/dcmitype/{$dcmiType}"/>
</xsl:if>
<xsl:if test="current() != ''">
<xsl:if test="$isPreservingIsoType and current() != ''">
<dct:type rdf:resource="{concat($isoCodeListBaseUri, current())}"/>
</xsl:if>
<!-- TODO: Add mapping to Datacite https://schema.datacite.org/meta/kernel-4.1/include/datacite-resourceType-v4.1.xsd ?-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<xsl:param name="isExpandSkosConcept"
select="xs:boolean($expandSkosConcept)"/>

<xsl:variable name="isPreservingIsoType"
as="xs:boolean"
select="true()"/>

<xsl:variable name="isPreservingAllResourceConstraints"
as="xs:boolean"
select="true()"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<xsl:variable name="isPreservingAllResourceConstraints"
as="xs:boolean"
select="false()"/>

<xsl:variable name="isPreservingIsoType"
as="xs:boolean"
select="false()"/>
<!--
Catalogue Record
[o] title Literal 0..* A name given to the Catalogue Record. This property can be repeated for parallel language versions of the name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<rdf:Description>
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#Dataset"/>
<dct:type rdf:resource="http://purl.org/dc/dcmitype/Dataset"/>
<dct:type rdf:resource="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#dataset"/>
<foaf:isPrimaryTopicOf>
<rdf:Description>
<rdf:type rdf:resource="http://www.w3.org/ns/dcat#CatalogRecord"/>
Expand Down

0 comments on commit d8b4c7a

Please sign in to comment.