[GeoNetwork-users] code to generate UUID

Hi all,

i am trying to push metadata xml files to geonetwork, using its API (geonetwork 3.4). it works fine !

but i would like to generate the UUID myself. who can show me where this is in the geonetwork code ?

Thanks in advance,

Ernest.

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

Hi

The uuid is taken from the xml, by default. If you're uploading iso19139
metadata, the uuid is taken from the gmd:fileIdentifier element.

Regards,
Jose García

On Wed, Mar 7, 2018 at 12:30 PM, Ernest Chiarello <
ernest.chiarello@anonymised.com> wrote:

Hi all,

i am trying to push metadata xml files to geonetwork, using its API
(geonetwork 3.4). it works fine !

but i would like to generate the UUID myself. who can show me where this
is in the geonetwork code ?

Thanks in advance,

Ernest.

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/project
s/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Thanks for your answser José.

but how to explain that there are several idenfiers in the same GeoNetwork record ?

https://georchestra-mshe.univ-fcomte.fr/geonetwork/srv/fre/catalog.search#/metadata/898d76fd-a15a-44f6-bfce-097daff6d9fe

1) the UUID

<gmd:fileIdentifier>
<gco:CharacterString>898d76fd-a15a-44f6-bfce-097daff6d9fe</gco:CharacterString>
</gmd:fileIdentifier>

2) another identifier. i don't where it comes from.

            &lt;gmd:identifier&gt;
               &lt;gmd:MD\_Identifier&gt;
                  &lt;gmd:code&gt;

<gco:CharacterString>FR-192-512-150-00363-Haies_Franche_Comte</gco:CharacterString>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>

3) another one, i don't know either.

                        &lt;gmd:identifier&gt;
                           &lt;gmd:MD\_Identifier&gt;
                              &lt;gmd:code&gt;

<gco:CharacterString>D2.8.II/III.7_v3.0</gco:CharacterString>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>

In fact, my question concerns the UUID. How can generate it by myself before pushing the xml file to GeoNetwork ?

thanks

Ernest.

Le 07. 03. 18 à 12:33, Jose Garcia a écrit :

Hi

The uuid is taken from the xml, by default. If you're uploading iso19139 metadata, the uuid is taken from the gmd:fileIdentifier element.

Regards,
Jose García

On Wed, Mar 7, 2018 at 12:30 PM, Ernest Chiarello <ernest.chiarello@anonymised.com <mailto:ernest.chiarello@anonymised.com>> wrote:

    Hi all,

    i am trying to push metadata xml files to geonetwork, using its
    API (geonetwork 3.4). it works fine !

    but i would like to generate the UUID myself. who can show me
    where this is in the geonetwork code ?

    Thanks in advance,

    Ernest.

    -- Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
    <mailto:Ernest.Chiarello@anonymised.com>
    UMR6049 ThéMA -- CNRS / université de Franche-Comté
    32 rue Mégevand 25030 Besançon cedex

    Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

    ------------------------------------------------------------------------------
    Check out the vibrant tech community on one of the world's most
    engaging tech sites, Slashdot.org! http://sdm.link/slashdot
    _______________________________________________
    GeoNetwork-devel mailing list
    GeoNetwork-devel@lists.sourceforge.net
    <mailto:GeoNetwork-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
    <https://lists.sourceforge.net/lists/listinfo/geonetwork-devel&gt;
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork
    <http://sourceforge.net/projects/geonetwork&gt;

--
***
Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <tel:+31318416664>

<https://www.facebook.com/geocatbv&gt;&lt;https://twitter.com/geocat_bv&gt;&lt;https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.
***

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

Hi

That are different types of identifiers, but the one related to the
metadata itself it's the element gmd:fileIdentifier, that is the one also
used in GeoNetwork to uniquely identify each metadata.

Regards,
Jose García

On Wed, Mar 7, 2018 at 1:47 PM, Ernest Chiarello <
ernest.chiarello@anonymised.com> wrote:

Thanks for your answser José.

but how to explain that there are several idenfiers in the same GeoNetwork
record ?

https://georchestra-mshe.univ-fcomte.fr/geonetwork/srv/fre/
catalog.search#/metadata/898d76fd-a15a-44f6-bfce-097daff6d9fe

1) the UUID

  <gmd:fileIdentifier>
      <gco:CharacterString>898d76fd-a15a-44f6-bfce-097daff6d9fe</
gco:CharacterString>
  </gmd:fileIdentifier>

2) another identifier. i don't where it comes from.

               <gmd:identifier>
                  <gmd:MD_Identifier>
                     <gmd:code>
                        <gco:CharacterString>FR-192-
512-150-00363-Haies_Franche_Comte</gco:CharacterString>
                     </gmd:code>
                  </gmd:MD_Identifier>
               </gmd:identifier>

3) another one, i don't know either.
                           <gmd:identifier>
                              <gmd:MD_Identifier>
                                 <gmd:code>
                                    <gco:CharacterString>D2.8.II/
III.7_v3.0</gco:CharacterString>
                                 </gmd:code>
                              </gmd:MD_Identifier>
                           </gmd:identifier>

In fact, my question concerns the UUID. How can generate it by myself
before pushing the xml file to GeoNetwork ?

thanks

Ernest.

Le 07. 03. 18 à 12:33, Jose Garcia a écrit :

Hi

The uuid is taken from the xml, by default. If you're uploading iso19139
metadata, the uuid is taken from the gmd:fileIdentifier element.

Regards,
Jose García

On Wed, Mar 7, 2018 at 12:30 PM, Ernest Chiarello <
ernest.chiarello@anonymised.com> wrote:

Hi all,

i am trying to push metadata xml files to geonetwork, using its API
(geonetwork 3.4). it works fine !

but i would like to generate the UUID myself. who can show me where this
is in the geonetwork code ?

Thanks in advance,

Ernest.

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
<https://maps.google.com/?q=Franche-Comté+ ++++++++++++32+rue+Mégevand&entry=gmail&source=g&gt;
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/project
s/geonetwork

--

* Vriendelijke groeten / Kind regards, Jose García
<http://www.geocat.net/&gt; Veenderweg 13 6721 WD Bennekom The Netherlands
T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt; Please consider the
environment before printing this email. *

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi,

i found a generator of GUID https://www.guidgenerator.com/online-guid-generator.aspx

my question concerned GeoNetwork itself : what algorithm/library does it use?

sincerly yours

Ernest.

Le 07/03/2018 à 15:23, Jose Garcia a écrit :

Hi

That are different types of identifiers, but the one related to the metadata itself it's the element gmd:fileIdentifier, that is the one also used in GeoNetwork to uniquely identify each metadata.

Regards,
Jose García

On Wed, Mar 7, 2018 at 1:47 PM, Ernest Chiarello <ernest.chiarello@anonymised.com <mailto:ernest.chiarello@anonymised.com>> wrote:

    Thanks for your answser José.

    but how to explain that there are several idenfiers in the same
    GeoNetwork record ?

    https://georchestra-mshe.univ-fcomte.fr/geonetwork/srv/fre/catalog.search#/metadata/898d76fd-a15a-44f6-bfce-097daff6d9fe
    <https://georchestra-mshe.univ-fcomte.fr/geonetwork/srv/fre/catalog.search#/metadata/898d76fd-a15a-44f6-bfce-097daff6d9fe&gt;

    1) the UUID

     <gmd:fileIdentifier>
    <gco:CharacterString>898d76fd-a15a-44f6-bfce-097daff6d9fe</gco:CharacterString>
     </gmd:fileIdentifier>

    2) another identifier. i don't where it comes from.

     <gmd:identifier>
     <gmd:MD_Identifier>
     <gmd:code>
    <gco:CharacterString>FR-192-512-150-00363-Haies_Franche_Comte</gco:CharacterString>
     </gmd:code>
     </gmd:MD_Identifier>
     </gmd:identifier>

    3) another one, i don't know either.

     <gmd:identifier>
    <gmd:MD_Identifier>
    <gmd:code>
    <gco:CharacterString>D2.8.II/III.7_v3.0</gco:CharacterString>
    </gmd:code>
    </gmd:MD_Identifier>
    </gmd:identifier>

    In fact, my question concerns the UUID. How can generate it by
    myself before pushing the xml file to GeoNetwork ?

    thanks

    Ernest.

    Le 07. 03. 18 à 12:33, Jose Garcia a écrit :

    Hi

    The uuid is taken from the xml, by default. If you're uploading
    iso19139 metadata, the uuid is taken from the gmd:fileIdentifier
    element.

    Regards,
    Jose García

    On Wed, Mar 7, 2018 at 12:30 PM, Ernest Chiarello
    <ernest.chiarello@anonymised.com
    <mailto:ernest.chiarello@anonymised.com>> wrote:

        Hi all,

        i am trying to push metadata xml files to geonetwork, using
        its API (geonetwork 3.4). it works fine !

        but i would like to generate the UUID myself. who can show me
        where this is in the geonetwork code ?

        Thanks in advance,

        Ernest.

        -- Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
        <mailto:Ernest.Chiarello@anonymised.com>
        UMR6049 ThéMA -- CNRS / université de Franche-Comté
        <https://maps.google.com/?q=Franche-Comté+ ++++++++++++32+rue+Mégevand&entry=gmail&source=g&gt;
        32 rue Mégevand 25030 Besançon cedex

        Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

        ------------------------------------------------------------------------------
        Check out the vibrant tech community on one of the world's most
        engaging tech sites, Slashdot.org! http://sdm.link/slashdot
        _______________________________________________
        GeoNetwork-devel mailing list
        GeoNetwork-devel@lists.sourceforge.net
        <mailto:GeoNetwork-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
        <https://lists.sourceforge.net/lists/listinfo/geonetwork-devel&gt;
        GeoNetwork OpenSource is maintained at
        http://sourceforge.net/projects/geonetwork
        <http://sourceforge.net/projects/geonetwork&gt;

    -- ***
    Vriendelijke groeten / Kind regards,

    Jose García

    <http://www.geocat.net/&gt;
    Veenderweg 13
    6721 WD Bennekom
    The Netherlands
    T: +31 (0)318 416664 <tel:+31318416664>

    <https://www.facebook.com/geocatbv&gt;&lt;https://twitter.com/geocat_bv&gt;&lt;https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

    Please consider the environment before printing this email.
    ***

    -- Ernest CHIARELLO -Ernest.Chiarello@anonymised.com
    <mailto:Ernest.Chiarello@anonymised.com>
    UMR6049 ThéMA -- CNRS / université de Franche-Comté
    32 rue Mégevand 25030 Besançon cedex

    Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

--
***
Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <tel:+31318416664>

<https://www.facebook.com/geocatbv&gt;&lt;https://twitter.com/geocat_bv&gt;&lt;https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.
***

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA - Théoriser et Modéliser pour Aménager
CNRS / université de Bourgogne Franche-Comté
32 rue Mégevand 25030 BESANÇON Cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

Hi

GeoNetwork uses UUID.randomUUID(), see documentation in
https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html

Regards,
Jose García

On Fri, Mar 9, 2018 at 3:09 PM, Chiarello Ernest <
Ernest.Chiarello@anonymised.com> wrote:

Hi,

i found a generator of GUID https://www.guidgenerator.com/
online-guid-generator.aspx

my question concerned GeoNetwork itself : what algorithm/library does it
use?

sincerly yours

Ernest.

Le 07/03/2018 à 15:23, Jose Garcia a écrit :

Hi

That are different types of identifiers, but the one related to the
metadata itself it's the element gmd:fileIdentifier, that is the one also
used in GeoNetwork to uniquely identify each metadata.

Regards,
Jose García

On Wed, Mar 7, 2018 at 1:47 PM, Ernest Chiarello <
ernest.chiarello@anonymised.com> wrote:

Thanks for your answser José.

but how to explain that there are several idenfiers in the same
GeoNetwork record ?

https://georchestra-mshe.univ-fcomte.fr/geonetwork/srv/fre/c
atalog.search#/metadata/898d76fd-a15a-44f6-bfce-097daff6d9fe

1) the UUID

  <gmd:fileIdentifier>
      <gco:CharacterString>898d76fd-a15a-44f6-bfce-097daff6d9fe</g
co:CharacterString>
  </gmd:fileIdentifier>

2) another identifier. i don't where it comes from.

               <gmd:identifier>
                  <gmd:MD_Identifier>
                     <gmd:code>
                        <gco:CharacterString>FR-192-51
2-150-00363-Haies_Franche_Comte</gco:CharacterString>
                     </gmd:code>
                  </gmd:MD_Identifier>
               </gmd:identifier>

3) another one, i don't know either.
                           <gmd:identifier>
                              <gmd:MD_Identifier>
                                 <gmd:code>
                                    <gco:CharacterString>D2.8.II/I
II.7_v3.0</gco:CharacterString>
                                 </gmd:code>
                              </gmd:MD_Identifier>
                           </gmd:identifier>

In fact, my question concerns the UUID. How can generate it by myself
before pushing the xml file to GeoNetwork ?

thanks

Ernest.

Le 07. 03. 18 à 12:33, Jose Garcia a écrit :

Hi

The uuid is taken from the xml, by default. If you're uploading iso19139
metadata, the uuid is taken from the gmd:fileIdentifier element.

Regards,
Jose García

On Wed, Mar 7, 2018 at 12:30 PM, Ernest Chiarello <
ernest.chiarello@anonymised.com> wrote:

Hi all,

i am trying to push metadata xml files to geonetwork, using its API
(geonetwork 3.4). it works fine !

but i would like to generate the UUID myself. who can show me where this
is in the geonetwork code ?

Thanks in advance,

Ernest.

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
<https://maps.google.com/?q=Franche-Comté+ ++++++++++++32+rue+Mégevand&entry=gmail&source=g&gt;
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/project
s/geonetwork

--

* Vriendelijke groeten / Kind regards, Jose García
<http://www.geocat.net/&gt; Veenderweg 13 6721 WD Bennekom The Netherlands
T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt; Please consider the
environment before printing this email. *

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com
UMR6049 ThéMA -- CNRS / université de Franche-Comté
32 rue Mégevand 25030 Besançon cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

--

* Vriendelijke groeten / Kind regards, Jose García
<http://www.geocat.net/&gt; Veenderweg 13 6721 WD Bennekom The Netherlands
T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt; Please consider the
environment before printing this email. *

--
Ernest CHIARELLO - Ernest.Chiarello@anonymised.com

UMR6049 ThéMA - Théoriser et Modéliser pour Aménager
CNRS / université de Bourgogne Franche-Comté
32 rue Mégevand 25030 BESANÇON Cedex

Tel : 03 81 66 53 66 Mob : 07 82 99 11 08

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*