Improve CSW service GetRecords response with outputSchema (dc:metada) Link attribute to service URI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Improve CSW service GetRecords response with outputSchema (dc:metada) Link attribute to service URI

mmanso
Dear all,

I am installing deegree as CSW server and offering some services
metadata records.

I have several records with the same content that offering by other
catalogues like geonetwork, ..

Then i am using MetaSearch pluging of QGis to connect with the
catalogue. It works fine to search, but the behaviour is different with
de results of the search between different catalogues.

The request send by MetaSearch client is:

<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" maxRecords="10"
outputFormat="application/xml"
outputSchema="http://www.opengis.net/cat/csw/2.0.2" resultType="results"
service="CSW" version="2.0.2"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">

.. and the result of deegree with the same metadata record is little
different.

Other Catalogue map in URI element of the XML DC Schema response the
transferOptions (protocol, linkage) elements information of ISO
gmd:MD_Metadata and deegree do no it.

Response differences:

<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">

   <csw:SearchStatus timestamp="2017-05-12T11:07:39" />

   <csw:SearchResults numberOfRecordsMatched="1"
numberOfRecordsReturned="1" elementSet="full" nextRecord="0">

     <csw:Record xmlns:dct="http://purl.org/dc/terms/"
xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ows="http://www.opengis.net/ows">

<dc:identifier>190812e6-a8be-4f58-a848-0d1f64132607</dc:identifier>

       <dc:title>Nationalparkernes ydre afrænsning</dc:title>

       <dc:type>dataset</dc:type>

       <dc:subject>Nationalpark</dc:subject>

       <dc:subject>INSPIRE</dc:subject>

       <dc:subject>Afgrænsning</dc:subject>

       <dc:subject>Forvaltede og regulerede omrÃ¥der samt omrÃ¥der med
brugsbegrænsning og indberetningsenheder</dc:subject>

       <dc:subject>environment</dc:subject>

       <dc:format>ESRI Shape file</dc:format>

       <dc:format>Mapinfo Tab file</dc:format>

       <dct:abstract>Kommentar: Data loadet til SagsGIS/ MiljøGIS og
benyttes herfra i NP's website via CB-korts minimaps

Snitflader: MiljøGIS_WMS

DER MANGLER INFO</dct:abstract>

       <dc:source />

       <dc:relation />

       <dc:format>ESRI Shape file</dc:format>

       <dc:format>Mapinfo Tab file</dc:format>

       <ows:BoundingBox crs="urn:ogc:def:crs:EPSG::ETRS89 / UTM zone 32N
(EPSG:25832)">

         <ows:LowerCorner>15.14917 54.56194</ows:LowerCorner>

         <ows:UpperCorner>8.09292 57.74597</ows:UpperCorner>

       </ows:BoundingBox>

       <dc:URI protocol="WWW:LINK-1.0-http--link" name=""
description="Nationalparker ydre
afgrænsning">http://miljoegis.www.mim.dk/spatialmap?selectorgroups=themecontainer%20nationalpark%20Skove%20skovudv&amp;mapext=305328.2548%206062882.2%20989360.2548%206385647&amp;layers=theme-gst-dtkskaerm_daempet%20theme-pg-np-ydre-afgr&amp;mapheight=793&amp;mapwidth=1675&amp;profile=miljoegis-skovdrift&amp;ignorefavorite=true</dc:URI>

       <dc:URI protocol="OGC:WMS" name="Digitale Naturkort - Grønt
Danmarkskort" description="WMS til Digitale Naturkort - Grønt
Danmarkskort">http://miljoegis.www.mim.dk/wms?servicename=miljoegis-plangroendk_wms</dc:URI>

     </csw:Record>

   </csw:SearchResults>

</csw:GetRecordsResponse>

And with deegree:

<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">
   <csw:SearchStatus timestamp="2017-05-12T11:07:39" />
   <csw:SearchResults numberOfRecordsMatched="1"
numberOfRecordsReturned="1" elementSet="full" nextRecord="0">
     <csw:Record xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
   <dc:identifier
xmlns:dc="http://purl.org/dc/elements/1.1/">190812e6-a8be-4f58-a848-0d1f64132607</dc:identifier>
       <dc:title
xmlns:dc="http://purl.org/dc/elements/1.1/">Nationalparkernes ydre
afrænsning</dc:title>
       <dc:type
xmlns:dc="http://purl.org/dc/elements/1.1/">dataset</dc:type>
       <dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/">Nationalpark</dc:subject>
       <dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/">INSPIRE</dc:subject>
       <dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/">Afgrænsning</dc:subject>
       <dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/">Forvaltede og regulerede
områder samt områder med brugsbegrænsning og
indberetningsenheder</dc:subject>
       <dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/">environment</dc:subject>
       <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">ESRI Shape
file</dc:format>
       <dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">Mapinfo
Tab file</dc:format>
       <dct:modified xmlns:dct="http://purl.org/dc/terms/">Wed Apr 05
15:18:39 UTC 2017</dct:modified>
       <dct:abstract xmlns:dct="http://purl.org/dc/terms/">Kommentar:
Data loadet til SagsGIS/ MiljøGIS og benyttes herfra i NP's website via
CB-korts minimaps
Snitflader: MiljøGIS_WMS DER MANGLER INFO</dct:abstract>
       <dc:source xmlns:dc="http://purl.org/dc/elements/1.1/"></dc:source>
       <dc:language
xmlns:dc="http://purl.org/dc/elements/1.1/">dan</dc:language>
       <ows:BoundingBox xmlns:ows="http://www.opengis.net/ows">
         <ows:LowerCorner>8.09292 54.56194</ows:LowerCorner>
         <ows:UpperCorner>15.14917 57.74597</ows:UpperCorner>
       </ows:BoundingBox>
     </csw:Record>
   </csw:SearchResults></csw:GetRecordsResponse>

Would it be easy to modify the deegree CSW code to get the same response
like first?

Thank you very much and greetings,

Miguel A. Manso


---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users