[GeoNetwork-users] Updating metadata with Python

Hi,

I am working on a way to programmatically access the metadata we have stored on a geonetwork housed with our collaborators at the Australian National Computing Infrastructure (NCI) using Python. The site is:

http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/

I have gone to the geonetwork user guide<http://geonetwork-opensource.org/manuals/trunk/eng/users/api/index.html&gt; and reviewed the section on the API, but it’s blank. I need to be able to upload new, and download old, information to and from existing records, and would like to be able to create records as well, though this is a lower priority. I would like to know if any one has been able to do this so far, and if so what was the approach?

I’ve accessed a sample record http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/catalog.edit#/metadata/899 using the Python Requests module and passed the authorisation to enable me to access the header, but it has no record specific information.

Can anyone help? Or at least point me in the right direction?

Thank you
Ian

Hi Ian

This part of the documentation is not migrated. You can check the related
documentation for GN 2.10.X in
http://geonetwork-opensource.org/manuals/2.10.4/eng/developer/xml_services/index.html
. Some services can be different in 3.X, but most should be the same.

In 3.0.X also can send a parameter _content_type=json, to retrieve the
information in json (at least for some services) instead of xml.

Regards,
Jose García

On Wed, Mar 2, 2016 at 2:19 AM, Ian Marang <ian.marang@anonymised.com> wrote:

Hi,

I am working on a way to programmatically access the metadata we have
stored on a geonetwork housed with our collaborators at the Australian
National Computing Infrastructure (NCI) using Python. The site is:

http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/

I have gone to the geonetwork user guide<
http://geonetwork-opensource.org/manuals/trunk/eng/users/api/index.html&gt;
and reviewed the section on the API, but it’s blank. I need to be able to
upload new, and download old, information to and from existing records, and
would like to be able to create records as well, though this is a lower
priority. I would like to know if any one has been able to do this so far,
and if so what was the approach?

I’ve accessed a sample record
http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/catalog.edit#/metadata/899
using the Python Requests module and passed the authorisation to enable me
to access the header, but it has no record specific information.

Can anyone help? Or at least point me in the right direction?

Thank you
Ian

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
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

--

*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

2016-03-02 8:18 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi Ian

This part of the documentation is not migrated. You can check the related
documentation for GN 2.10.X in

http://geonetwork-opensource.org/manuals/2.10.4/eng/developer/xml_services/index.html
. Some services can be different in 3.X, but most should be the same.

In 3.0.X also can send a parameter _content_type=json, to retrieve the
information in json (at least for some services) instead of xml.

Regards,
Jose García

On Wed, Mar 2, 2016 at 2:19 AM, Ian Marang <ian.marang@anonymised.com>
wrote:

> Hi,
>
> I am working on a way to programmatically access the metadata we have
> stored on a geonetwork housed with our collaborators at the Australian
> National Computing Infrastructure (NCI) using Python. The site is:
>
> http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/
>
> I have gone to the geonetwork user guide<
> http://geonetwork-opensource.org/manuals/trunk/eng/users/api/index.html&gt;
> and reviewed the section on the API, but it’s blank. I need to be able to
> upload new, and download old, information to and from existing records,
and
> would like to be able to create records as well,

A good candidate for transactions is using CSW-T services.

Cheers.

Francois

though this is a lower
> priority. I would like to know if any one has been able to do this so
far,
> and if so what was the approach?
>
> I’ve accessed a sample record
>
http://geonetworkrr9.nci.org.au/geonetwork/srv/eng/catalog.edit#/metadata/899
> using the Python Requests module and passed the authorisation to enable
me
> to access the header, but it has no record specific information.
>
> Can anyone help? Or at least point me in the right direction?
>
> Thank you
> Ian
>
>
------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> 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
>

--

*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.*

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
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