Skip to content

Commit

Permalink
Fix RDF output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
seitenbau-govdata authored and jvanzadelhoff committed Jul 17, 2020
1 parent d799df5 commit b84d920
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/main/resources/iso2dcat.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
</xsl:otherwise>
</xsl:choose>


<xsl:apply-templates select="gmd:dataQualityInfo/*/gmd:report/*/gmd:result/gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation"/>
<xsl:apply-templates select="gmd:identificationInfo[1]/*/gmd:resourceMaintenance/*/gmd:maintenanceAndUpdateFrequency/*/@codeListValue"/>
<xsl:apply-templates select="gmd:hierarchyLevel"/>
Expand Down Expand Up @@ -439,25 +438,25 @@
</xsl:template>

<xsl:template match="gmd:CI_ResponsibleParty" mode="contactPoint">
<dcat:contactPoint>
<xsl:call-template name="vcardOrg"/>
</dcat:contactPoint>
<dcat:contactPoint>
<xsl:call-template name="vcardOrg"/>
</dcat:contactPoint>
</xsl:template>

<xsl:template match="gmd:CI_ResponsibleParty[gmd:role/gmd:CI_RoleCode/@codeListValue='publisher']">
<xsl:apply-templates select="." mode="publisher"/>
</xsl:template>

<xsl:template match="gmd:CI_ResponsibleParty" mode="publisher">
<dct:publisher>
<xsl:call-template name="foafOrg"/>
</dct:publisher>
<dct:publisher>
<xsl:call-template name="foafOrg"/>
</dct:publisher>
</xsl:template>

<xsl:template match="gmd:CI_ResponsibleParty[gmd:role/gmd:CI_RoleCode/@codeListValue='custodian']">
<dcatde:maintainer>
<xsl:call-template name="foafOrg"/>
</dcatde:maintainer>
<dcatde:maintainer>
<xsl:call-template name="foafOrg"/>
</dcatde:maintainer>
</xsl:template>

<xsl:template name="foafOrg">
Expand Down Expand Up @@ -1072,11 +1071,11 @@
</xsl:template>

<xsl:template match="gmd:identificationInfo/*/gmd:descriptiveKeywords/*[starts-with(gmd:thesaurusName/gmd:CI_Citation/gmd:title/*, 'GEMET - INSPIRE themes')]/gmd:keyword[1]/gco:CharacterString">
<xsl:call-template name="dcatKeyword"/>
<xsl:call-template name="dcatKeyword"/>
</xsl:template>

<xsl:template match="gmd:identificationInfo/*/gmd:descriptiveKeywords/*[gmd:thesaurusName and not(starts-with(gmd:thesaurusName/gmd:CI_Citation/gmd:title/*, 'GEMET - INSPIRE themes'))]/gmd:keyword/gco:CharacterString">
<xsl:call-template name="dcatKeyword"/>
<xsl:call-template name="dcatKeyword"/>
</xsl:template>

<xsl:template name="dcatKeyword">
Expand Down Expand Up @@ -1314,4 +1313,4 @@

<!--<xsl:template match="node()|@*"/>-->

</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit b84d920

Please sign in to comment.