CSW: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: 'Catalog Services for the Web' von OGC. GeoNetwork opensource v2.1 is the Reference Implementation of OGC-CSW 2.0.1. The following OGC specifications are relevant to ...)
 
K
 
(11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'Catalog Services for the Web' von OGC.
+
'Catalog Services for the Web' from OGC.
  
GeoNetwork opensource v2.1 is the Reference Implementation of OGC-CSW 2.0.1.
+
See also [[OAI-PMH]] and especially [[HowTo OAI-PMH]] for harvesting geo-metadata.
  
The following OGC specifications are relevant to the CSW support:
+
Specifications and software:
 +
* OGC-CSW 2.0.1, OGC Catalogue Services Specification, version 2.0.1 [http://portal.opengeospatial.org/files/?artifact_id=5929&version=2 OGC 04-021r3].
 +
* GeoNetwork opensource v2.1 (GN) the Reference Implementation of CSW.
  
* OGC Catalogue Services Specification, version 2.0.1 [http://portal.opengeospatial.org/files/?artifact_id=5929&version=2 OGC 04-021r3]
+
The following OGC specifications are also relevant for CSW (!):
 
* OpenGIS Web Services Common Specification, version 1.0.0 [https://portal.opengeospatial.org/files/?artifact_id=8798 OGC 05-008c1]
 
* OpenGIS Web Services Common Specification, version 1.0.0 [https://portal.opengeospatial.org/files/?artifact_id=8798 OGC 05-008c1]
 
* Filter Encoding Implementation Specification, version 1.1.0 [http://portal.opengeospatial.org/files/?artifact_id=8340 OGC 04-095]
 
* Filter Encoding Implementation Specification, version 1.1.0 [http://portal.opengeospatial.org/files/?artifact_id=8340 OGC 04-095]
 
* Geographic information -- Geography Markup Language [http://portal.opengeospatial.org/files/?artifact_id=4700 OGC 03-105r1]
 
* Geographic information -- Geography Markup Language [http://portal.opengeospatial.org/files/?artifact_id=4700 OGC 03-105r1]
  
The following is an example of a ‘qualified’ core metadata set expressed in XML as per the guidance
+
== CSW servers ==
of the Dublin Core Metadata Initiative (Source: []):
+
 
   <?xml version="1.0" encoding="UTF-8"?>
+
* Geocat (CH): http://www.geocat.ch/geonetwork/srv/ger/csw
   <cat:Record
+
* DataGov (USA): http://catalog.data.gov/csw-all
    xmlns:cat="http://www.opengis.net/cat"
+
* Geonorge - National CSW service for Norway: http://www.geonorge.no/geonetwork/srv/eng/csw
    xmlns:dc="http://purl.org/dc/elements/1.1/"
+
* Geoportale Nazionale - Servizio di ricerca Italiano (IT): http://www.pcn.minambiente.it/geoportal/csw
    xmlns:dct="http://purl.org/dc/terms/"
+
* Geoland.at (A): http://www.geoland.at/geonetwork/srv/ger/csw
    xmlns:csw="http://www.opengis.net/cat/csw"
+
* LINZ Data Service: http://data.linz.govt.nz/feeds/csw
    xmlns:iso19115TopicCategory="http://www.isotc211.org/"
+
* Nationaal Georegister (NL): http://www.nationaalgeoregister.nl/geonetwork/srv/eng/csw
    xmlns:dcmiBox="http://dublincore.org/documents/2000/07/11/dcmi-box/">
+
* UK Location Catalogue Publishing Service (UK): http://csw.data.gov.uk/geonetwork/srv/en/csw
    <dc:creator>U.S. Geological Survey</dc:creator>
+
* British Geological Survey (UK): http://metadata.bgs.ac.uk/geonetwork/srv/en/csw
 +
* UNEP: http://geonetwork.grid.unep.ch/geonetwork/srv/en/csw
 +
* MITAS: http://sdi.data.gov.mt/geonetwork/srv/eng/csw?
 +
* Irland (Inspire): https://www.geoportal.ie/geoportal/csw
 +
* European Commission, DG Joint Research Centre (JRC)): http://inspire-geoportal.ec.europa.eu/GeoportalProxyWebServices/resources/OGCCSW202/AT
 +
* Estonia Inspire (E): http://inspire.maaamet.ee/geoportal/csw/discovery
 +
* Geonorge metadataportal (Norway): http://www.geonorge.no/geonetwork/srv/nor/csw-inspire
 +
* IDEE Discovery service (Spain): http://www.idee.es/csw-inspire-idee/srv/eng/csw
 +
* GeodatenKatalog.De: http://gdk.gdi-de.org/inspire/srv/eng/csw
 +
 
 +
== Discussion ==
 +
 
 +
CSW is not the only catalog specification from OGC. There is a competing specification called 'ebRIM Profile' (!!!) :-O.
 +
 
 +
Harvesting is not yet implemented in GeoNetwork (GN) - the reference implementation (!!!). Question from the GeoNetwork-devel mailing list: "Why the CSW harvesting compliant with the OGC spec. is not implemented in GN 2.1". Answer (26.09.2007 14:07): "
 +
The CSW harvesting operation has a not well defined sematics and is not
 +
flexible enough to allow a good harvesting. The specs are continually
 +
changing making its usage useless. I'm finishing to implement the [[OAI-PMH]]
 +
harvesting protocol and, IMHO, it outperforms CSW harvesting on all aspects.".
 +
 
 +
The following is from OCG's "Catalogue Service Implementation Specification", 2.0.2 ([http://portal.opengeospatial.org/files/?artifact_id=20555 OGC 07-006r1], chap. 6.3.3) and from http://schemas.opengis.net/csw/2.0.2/examples/:
 +
   <?xml version="1.0" encoding="ISO-8859-1"?>
 +
   <csw:Record
 +
    xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"  
 +
    xmlns:dc="http://purl.org/dc/elements/1.1/"
 +
    xmlns:dct="http://purl.org/dc/terms/"
 +
    xmlns:ows="http://www.opengis.net/ows"
 +
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 +
    xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 ../../../csw/2.0.2/record.xsd">
 
     <dc:creator>U.S. Geological Survey</dc:creator>
 
     <dc:creator>U.S. Geological Survey</dc:creator>
 
     <dc:contributor>State of Texas</dc:contributor>
 
     <dc:contributor>State of Texas</dc:contributor>
 
     <dc:publisher>U.S. Geological Survey</dc:publisher>
 
     <dc:publisher>U.S. Geological Survey</dc:publisher>
 
     <dc:subject>Elevation, Hypsography, and Contours</dc:subject>
 
     <dc:subject>Elevation, Hypsography, and Contours</dc:subject>
     <iso19115TopicCategory>Elevation</iso19115TopicCategory>
+
     <dc:subject>elevation</dc:subject>
     <dct:abstract>Elevation data collected for the National Elevation
+
     <dct:abstract>Elevation data collected for the National Elevation Dataset (NED) based on 30m horizontal and 15m vertical accuracy.</dct:abstract>
      Dataset (NED) based on 30m horizontal and 15m vertical accuracy.
+
     <dc:identifier>ac522ef2-89a6-11db-91b1-7eea55d89593</dc:identifier>
    </dct:abstract>
+
     <dc:relation>OfferedBy</dc:relation>
     <dc:identifier>f264-77d2-09ce-aa39-f0f0</dc:identifier>
+
     <dc:source>dd1b2ce7-0722-4642-8cd4-6f885f132777</dc:source>
     <dc:relation>g</dc:relation>
+
     <dc:rights>Copyright © 2004, State of Texas</dc:rights>
     <dc:source>h</dc:source>
+
     <dc:type>dataset</dc:type>
     <dc:rights>i</dc:rights>
 
    <dc:format>j</dc:format>
 
     <dc:type>Service</dc:type>
 
 
     <dc:title>National Elevation Mapping Service for Texas</dc:title>
 
     <dc:title>National Elevation Mapping Service for Texas</dc:title>
 
     <dct:modified>2004-03-01</dct:modified>
 
     <dct:modified>2004-03-01</dct:modified>
    <dct:spatial>
 
      <Box projection="EPSG:4326" name="Geographic">
 
        <northlimit>34.353</northlimit>
 
        <eastlimit>-96.223</eastlimit>
 
        <southlimit>28.229</southlimit>
 
        <westlimit>-108.44</westlimit>
 
      </Box>
 
    </dct:spatial>
 
 
     <dc:language>en</dc:language>
 
     <dc:language>en</dc:language>
   </cat:Record>
+
    <ows:BoundingBox>
 +
      <ows:LowerCorner>-108.44 28.229</ows:LowerCorner>
 +
      <ows:UpperCorner>-96.223 34.353</ows:UpperCorner>
 +
    </ows:BoundingBox>
 +
  </csw:Record>
 +
 
 +
That example should be a dataset and not a service. Here is my proposal of a WCS service metadata set which points to the record above:
 +
 
 +
  <?xml version="1.0" encoding="ISO-8859-1"?>
 +
   <csw:Record
 +
    xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
 +
    ...
 +
    <dc:identifier>http://www.usgs.gov/pubprod/wms?SERVICE=WMS</dc:identifier>
 +
    <dc:type>Service</dc:type>
 +
    <dct:references>ac522ef2-89a6-11db-91b1-7eea55d89593<dct:references>
 +
    ...
 +
    <ows:BoundingBox>
 +
      <ows:LowerCorner>-108.44 28.229</ows:LowerCorner>
 +
      <ows:UpperCorner>-96.223 34.353</ows:UpperCorner>
 +
    </ows:BoundingBox>
 +
  </csw:Record>
 +
 
 +
=== How to encode WGS84 Bounding Box? ===
 +
The example in 10.2.5.3.2 "Full record" shows element ows:WGS84BoundingBox (instead of ows:BoundingBox) and the text in 10.2.5.3.3 "Summary Response Record" mentions "dct:spatial" for the encoding. Then, "OGC's Cataloguing of ISO Metadata (CIM) using the ebRIM profile of CS-W (0.1.7)" mentions again dct:spatial !???
 +
 
 +
Proposal: ows:BoundingBox or dct:spatial (both with CRS=WGS84 as mandatory/default)
 +
 
 +
=== How to encode record sets? ===
 +
csw:Record is a single instance. How to encode record sets??
 +
 
 +
Proposal: ?
 +
 
 +
=== How to encode services? ===
 +
Services can be divided into WxS being "Data Access Points" to datasets and to services on their own being Processing Services (WPS), like Coordinate Transform, which don't have any specifically related dataset.
 +
 
 +
In order to not confuse people too much who believe, WMS is a service on its own, and to simplify harvesing of WMS I propose the following:
 +
 
 +
Dataset record: A record of dc:type=dataset and
 +
Service record: Another record of dc:type=service with dct:references=<identifier-of-dataset>.
 +
 
 +
dct:references is part of the dc:relation subgroup. Here, for example, a WMS URL would be encoded in dc:identifier of the service record.

Aktuelle Version vom 8. Juni 2015, 09:26 Uhr

'Catalog Services for the Web' from OGC.

See also OAI-PMH and especially HowTo OAI-PMH for harvesting geo-metadata.

Specifications and software:

  • OGC-CSW 2.0.1, OGC Catalogue Services Specification, version 2.0.1 OGC 04-021r3.
  • GeoNetwork opensource v2.1 (GN) the Reference Implementation of CSW.

The following OGC specifications are also relevant for CSW (!):

  • OpenGIS Web Services Common Specification, version 1.0.0 OGC 05-008c1
  • Filter Encoding Implementation Specification, version 1.1.0 OGC 04-095
  • Geographic information -- Geography Markup Language OGC 03-105r1

CSW servers

Discussion

CSW is not the only catalog specification from OGC. There is a competing specification called 'ebRIM Profile' (!!!) :-O.

Harvesting is not yet implemented in GeoNetwork (GN) - the reference implementation (!!!). Question from the GeoNetwork-devel mailing list: "Why the CSW harvesting compliant with the OGC spec. is not implemented in GN 2.1". Answer (26.09.2007 14:07): " The CSW harvesting operation has a not well defined sematics and is not flexible enough to allow a good harvesting. The specs are continually changing making its usage useless. I'm finishing to implement the OAI-PMH harvesting protocol and, IMHO, it outperforms CSW harvesting on all aspects.".

The following is from OCG's "Catalogue Service Implementation Specification", 2.0.2 (OGC 07-006r1, chap. 6.3.3) and from http://schemas.opengis.net/csw/2.0.2/examples/:

 <?xml version="1.0" encoding="ISO-8859-1"?>
 <csw:Record
    xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" 
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dct="http://purl.org/dc/terms/"
    xmlns:ows="http://www.opengis.net/ows"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 ../../../csw/2.0.2/record.xsd">
   <dc:creator>U.S. Geological Survey</dc:creator>
   <dc:contributor>State of Texas</dc:contributor>
   <dc:publisher>U.S. Geological Survey</dc:publisher>
   <dc:subject>Elevation, Hypsography, and Contours</dc:subject>
   <dc:subject>elevation</dc:subject>
   <dct:abstract>Elevation data collected for the National Elevation Dataset (NED) based on 30m horizontal and 15m vertical accuracy.</dct:abstract>
   <dc:identifier>ac522ef2-89a6-11db-91b1-7eea55d89593</dc:identifier>
   <dc:relation>OfferedBy</dc:relation>
   <dc:source>dd1b2ce7-0722-4642-8cd4-6f885f132777</dc:source>
   <dc:rights>Copyright © 2004, State of Texas</dc:rights>
   <dc:type>dataset</dc:type>
   <dc:title>National Elevation Mapping Service for Texas</dc:title>
   <dct:modified>2004-03-01</dct:modified>
   <dc:language>en</dc:language>
   <ows:BoundingBox>
     <ows:LowerCorner>-108.44 28.229</ows:LowerCorner>
     <ows:UpperCorner>-96.223 34.353</ows:UpperCorner>
   </ows:BoundingBox>
 </csw:Record>

That example should be a dataset and not a service. Here is my proposal of a WCS service metadata set which points to the record above:

 <?xml version="1.0" encoding="ISO-8859-1"?>
 <csw:Record
    xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" 
    ...
   <dc:identifier>http://www.usgs.gov/pubprod/wms?SERVICE=WMS</dc:identifier>
   <dc:type>Service</dc:type>
   <dct:references>ac522ef2-89a6-11db-91b1-7eea55d89593<dct:references>
   ...
   <ows:BoundingBox>
     <ows:LowerCorner>-108.44 28.229</ows:LowerCorner>
     <ows:UpperCorner>-96.223 34.353</ows:UpperCorner>
   </ows:BoundingBox>
 </csw:Record>

How to encode WGS84 Bounding Box?

The example in 10.2.5.3.2 "Full record" shows element ows:WGS84BoundingBox (instead of ows:BoundingBox) and the text in 10.2.5.3.3 "Summary Response Record" mentions "dct:spatial" for the encoding. Then, "OGC's Cataloguing of ISO Metadata (CIM) using the ebRIM profile of CS-W (0.1.7)" mentions again dct:spatial !???

Proposal: ows:BoundingBox or dct:spatial (both with CRS=WGS84 as mandatory/default)

How to encode record sets?

csw:Record is a single instance. How to encode record sets??

Proposal: ?

How to encode services?

Services can be divided into WxS being "Data Access Points" to datasets and to services on their own being Processing Services (WPS), like Coordinate Transform, which don't have any specifically related dataset.

In order to not confuse people too much who believe, WMS is a service on its own, and to simplify harvesing of WMS I propose the following:

Dataset record: A record of dc:type=dataset and 
Service record: Another record of dc:type=service with dct:references=<identifier-of-dataset>. 

dct:references is part of the dc:relation subgroup. Here, for example, a WMS URL would be encoded in dc:identifier of the service record.