From c2aacac393627869c967dd834174058ca2a5cce4 Mon Sep 17 00:00:00 2001 From: paul van genuchten Date: Fri, 4 Sep 2020 11:05:49 +0200 Subject: [PATCH] some improvement suggestions for dcat export (#4898) - introduces some dcat2 aspects and - enables some of the gmx:anchor usages as suggested by inspire tgv2 - set uri-encoding for id's --- .../main/plugin/iso19139/layout/tpl-rdf.xsl | 159 ++++++++---------- 1 file changed, 74 insertions(+), 85 deletions(-) diff --git a/schemas/iso19139/src/main/plugin/iso19139/layout/tpl-rdf.xsl b/schemas/iso19139/src/main/plugin/iso19139/layout/tpl-rdf.xsl index 198fafc21f0..f9738328f64 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/layout/tpl-rdf.xsl +++ b/schemas/iso19139/src/main/plugin/iso19139/layout/tpl-rdf.xsl @@ -34,6 +34,8 @@ xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:srv="http://www.isotc211.org/2005/srv" + xmlns:gmx="http://www.isotc211.org/2005/gmx" + xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gml320="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/rdf#" @@ -50,14 +52,15 @@ See http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-URI-reference --> + - - + + @@ -66,16 +69,16 @@ --> - + - + - - + + @@ -85,11 +88,6 @@ - - - - - @@ -97,44 +95,19 @@ - - - - - - - - - application/xml - XML - - - - - - - - - - text/html - HTML - - - - - - + + + rdf:about="{$resourcePrefix}/registries/vocabularies/{encode-for-uri(iso19139:getThesaurusCode(../../gmd:thesaurusName))}/concepts/{encode-for-uri(.)}"> + rdf:resource="{$resourcePrefix}/registries/vocabularies/{encode-for-uri(iso19139:getThesaurusCode(../../gmd:thesaurusName))}"/> @@ -155,7 +128,7 @@ - + @@ -176,32 +149,19 @@ - - + + + + + + + + - - - - - - - - - + - - - + + @@ -228,7 +188,6 @@ - + + + @@ -319,34 +281,45 @@ + + + + + + + rdf:resource="{$resourcePrefix}/registries/vocabularies/{encode-for-uri(iso19139:getThesaurusCode(../../gmd:thesaurusName))}/concepts/{encode-for-uri(.)}"/> + + + + + + - - - + + select="gmd:graphicOverview/gmd:MD_BrowseGraphic/gmd:fileName/gco:CharacterString[normalize-space(.)!='']"> - - + @@ -446,12 +419,18 @@ + + + + + - - + + @@ -459,40 +438,40 @@ "This usually consisits of a table providing explanation of columns meaning, values interpretation and acronyms/codes used in the data." --> - + select="../../gmd:contentInfo/gmd:MD_FeatureCatalogueDescription/gmd:featureCatalogueCitation/@uuidref"> + - + + rdf:resource="{iso19139:RecordUri(gmd:aggregateDataSetIdentifier/gmd:MD_Identifier/gmd:code/gco:CharacterString)}"/> - + - + - + - + @@ -557,4 +536,14 @@ else generate-id($responsibleParty)"/> + + + + + + + + + +