[GeoNetwork-users] how to import gmi:MI_Metadata metadata ?

Hello,

I an beginning with Geonetwork and do not manage to import metadata from a
XML file with the following root element (according to
https://geo-ide.noaa.gov/wiki/index.php?title=ISO_Namespaces). Do you have
any idea how to achieve this ?
Thanks in advance for your help.

<gmi:MI_Metadata
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.isotc211.org/2005/gmi
http://ngdc.noaa.gov/metadata/published/xsd/schema.xsd&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:gco="http://www.isotc211.org/2005/gco&quot;
  xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
  xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
  xmlns:gml="http://www.opengis.net/gml/3.2&quot;
  xmlns:gss="http://www.isotc211.org/2005/gss&quot;
  xmlns:gts="http://www.isotc211.org/2005/gts&quot;
  xmlns:gsr="http://www.isotc211.org/2005/gsr&quot;
  xmlns:gmi="http://www.isotc211.org/2005/gmi&quot;
  xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;

I get this error in the log :

2016-06-27 11:49:53,429 ERROR [jeeves.service] - Exception when executing
service
2016-06-27 11:49:53,442 ERROR [jeeves.service] - (C) Exc :
NoSchemaMatchesException : Autodetecting schema failed for metadata record
with root element MI_Metadata in namespace [Namespace: prefix "gmi" is
mapped to URI "http://www.isotc211.org/2005/gmi&quot;\].
2016-06-27 11:49:53,442 ERROR [jeeves] - Error occurred within a transaction
NoSchemaMatchesException : Autodetecting schema failed for metadata record
with root element MI_Metadata in namespace [Namespace: prefix "gmi" is
mapped to URI "http://www.isotc211.org/2005/gmi&quot;\].
(...)

Hello,

you have to add your root element to the <autodetect>-element in the file schema-ident.xml in the corresponding plugin schema directory, see http://www.geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/implementing-a-schema-plugin.html, and make a new build.

Furthermore, the xsi:schemaLocation has to be omitted in your file.

Best regards

Gerd

Am 27.06.2016 um 14:05 schrieb fred p:

Hello,

I an beginning with Geonetwork and do not manage to import metadata from a
XML file with the following root element (according to
https://geo-ide.noaa.gov/wiki/index.php?title=ISO_Namespaces). Do you have
any idea how to achieve this ?
Thanks in advance for your help.

<gmi:MI_Metadata
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
  xsi:schemaLocation="http://www.isotc211.org/2005/gmi
http://ngdc.noaa.gov/metadata/published/xsd/schema.xsd&quot;
  xmlns:xlink="http://www.w3.org/1999/xlink&quot;
  xmlns:gco="http://www.isotc211.org/2005/gco&quot;
  xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
  xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
  xmlns:gml="http://www.opengis.net/gml/3.2&quot;
  xmlns:gss="http://www.isotc211.org/2005/gss&quot;
  xmlns:gts="http://www.isotc211.org/2005/gts&quot;
  xmlns:gsr="http://www.isotc211.org/2005/gsr&quot;
  xmlns:gmi="http://www.isotc211.org/2005/gmi&quot;
  xmlns:srv="http://www.isotc211.org/2005/srv&quot;&gt;

I get this error in the log :

2016-06-27 11:49:53,429 ERROR [jeeves.service] - Exception when executing
service
2016-06-27 11:49:53,442 ERROR [jeeves.service] - (C) Exc :
NoSchemaMatchesException : Autodetecting schema failed for metadata record
with root element MI_Metadata in namespace [Namespace: prefix "gmi" is
mapped to URI "http://www.isotc211.org/2005/gmi&quot;\].
2016-06-27 11:49:53,442 ERROR [jeeves] - Error occurred within a transaction
NoSchemaMatchesException : Autodetecting schema failed for metadata record
with root element MI_Metadata in namespace [Namespace: prefix "gmi" is
mapped to URI "http://www.isotc211.org/2005/gmi&quot;\].
(...)
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Priv.-Doz. Dr. Gerhard Gröger

CPA Software GmbH
Auf dem Seidenberg 3a
53721 Siegburg

Tel.: +49 2241 2594-241
Fax.: +49 2241 2594-29

groeger@anonymised.com
www.cpa-software.de

--------------------------------------
Handelsregister:
HRB 12438, Amtsgericht Siegburg

Geschäftsführer:
Dr.-Ing. habil. Christoph Averdung
Dr.-Ing. Matthias Ellsiepen