Skip to content

Multiple instances of locn:geometry and dcat:bbox #76

@AntoRot

Description

@AntoRot

By applying the XSLT, for each instance of the Bounding Box (gmd:EX_GeographicBoundingBox element) in the ISO INSPIRE XML, 4 instances of the locn:geometry property and 4 instances of the dcat:bbox property are created in the transformation output.

As an example, this is the input bounding box:

<gmd:extent>
            <gmd:EX_Extent>
               <gmd:geographicElement>
                  <gmd:EX_GeographicBoundingBox>
                     <gmd:westBoundLongitude>
                        <gco:Decimal>8.14</gco:Decimal>
                     </gmd:westBoundLongitude>
                     <gmd:eastBoundLongitude>
                        <gco:Decimal>9.83</gco:Decimal>
                     </gmd:eastBoundLongitude>
                     <gmd:southBoundLatitude>
                        <gco:Decimal>38.85</gco:Decimal>
                     </gmd:southBoundLatitude>
                     <gmd:northBoundLatitude>
                        <gco:Decimal>41.31</gco:Decimal>
                     </gmd:northBoundLatitude>
                  </gmd:EX_GeographicBoundingBox>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </gmd:extent>

and this is the output:

  <dct:spatial rdf:parseType="Resource">
         <rdf:type rdf:resource="http://purl.org/dc/terms/Location"/>
         <locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#wktLiteral"><![CDATA[POLYGON((8.14 41.31,9.83 41.31,9.83 38.85,8.14 38.85,8.14 41.31))]]></locn:geometry>
         <locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#gmlLiteral"><![CDATA[<gml:Envelope srsName="http://www.opengis.net/def/crs/OGC/1.3/CRS84"><gml:lowerCorner>8.14 38.85</gml:lowerCorner><gml:upperCorner>9.83 41.31</gml:upperCorner></gml:Envelope>]]></locn:geometry>
         <locn:geometry rdf:datatype="https://www.iana.org/assignments/media-types/application/vnd.geo+json"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></locn:geometry>
         <locn:geometry rdf:datatype="http://www.opengis.net/ont/geosparql#geoJSONLiteral"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></locn:geometry>
         <dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#wktLiteral"><![CDATA[POLYGON((8.14 41.31,9.83 41.31,9.83 38.85,8.14 38.85,8.14 41.31))]]></dcat:bbox>
         <dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#gmlLiteral"><![CDATA[<gml:Envelope srsName="http://www.opengis.net/def/crs/OGC/1.3/CRS84"><gml:lowerCorner>8.14 38.85</gml:lowerCorner><gml:upperCorner>9.83 41.31</gml:upperCorner></gml:Envelope>]]></dcat:bbox>
         <dcat:bbox rdf:datatype="https://www.iana.org/assignments/media-types/application/vnd.geo+json"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></dcat:bbox>
         <dcat:bbox rdf:datatype="http://www.opengis.net/ont/geosparql#geoJSONLiteral"><![CDATA[{"type":"Polygon","coordinates":[[[8.14,41.31],[9.83,41.31],[9.83,38.85],[8.14,38.85],[8.14,41.31]]]}]]></dcat:bbox>
      </dct:spatial>

Only one property should be used in the transformation output and with only one instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    future-workTo be dealt with in the next iteration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions