From: jandic <pj...@co...> - 2011-07-07 10:59:57
|
Hello, I am using GeoNetwork 2.6.4 to provide data using OAI-PMH protocol. However, I noticed that when I use the GetRecord request using ISO19139 format, the returned metadata record cannot be validated. This is not because the record itself is not valid but because the GML schema namespace does not correspond with the namespaces used in ISO19139 GeoNetwork schema definition. The example below should explain the issue: <gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gts="http://www.isotc211.org/2005/gts" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://metadata.biodiversityireland.ie:80/geonetwork/xml/schemas/iso19139/schema.xsd"> In the above example the gml namespace is http://www.opengis.net/gml/3.2 and therefore using version 3.2.1 of GML specification. However, the default ISO19139 schema definition (XSDs) in Geonetwork 2.6.4 (and previous) is using the gml namespace http://www.opengis.net/gml/ and so using version 3.1.1 of GML specification. The above issue causes that the metadata record as provided cannot be validated but after I replaced the ISO19139 schema definition with the latest specification that I downloaded, I can validate it without any problem. I had a look into this issue and could not found where the http://www.opengis.net/gml/3.2 namespace is configured so I presume that is hardcoded somewhere in GeoNetwork code. So I had to download GML schema version 3.2.1, replace it in the ISO19139 schema definition and then fixed all references to GML within ISO19139 schema to reference the appropriate namespace http://www.opengis.net/gml/3.2 . Hope this will help somebody. Pavel -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Invalid-GML-namespace-using-OAI-PMH-tp6557907p6557907.html Sent from the GeoNetwork users mailing list archive at Nabble.com. |