[GeoNetwork-users] What are Saved Queries?

Hi All,

I'm exploring the API for Geonetwork 3.2.x and there are operations for
records for "Listing Saved Queries" and "Applying Saved Queries". I might
be missing something, but I can't find any information on what these are
actually for- what is a saved query and how do I create one?

I'm actually looking for ways in which I can interrogate the records and
find out which ones are due to be updated. I can do this in the database
but if there's an API approach using some sort of query, that would be much
better.

Thanks in advance for your help,

Jo

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Jo

This feature seem allowing to define xpath templates and use them later for
querying specific properties from the metadata.

Queries are defined in this file:
https://github.com/geonetwork/core-geonetwork/blob/3.2.x/schemas/iso19139/src/main/resources/config-spring-geonetwork.xml#L34

API implementation:
https://github.com/geonetwork/core-geonetwork/blob/3.2.x/services/src/main/java/org/fao/geonet/api/records/MetadataSavedQueryApi.java

The API has some brief documentation, but can't find any additional
documentation in the manual or WIKI proposal.

Regards,
Jose García

On Thu, Sep 7, 2017 at 6:08 PM, Jo Cook <jocook@anonymised.com> wrote:

Hi All,

I'm exploring the API for Geonetwork 3.2.x and there are operations for
records for "Listing Saved Queries" and "Applying Saved Queries". I might
be missing something, but I can't find any information on what these are
actually for- what is a saved query and how do I create one?

I'm actually looking for ways in which I can interrogate the records and
find out which ones are due to be updated. I can do this in the database
but if there's an API approach using some sort of query, that would be much
better.

Thanks in advance for your help,

Jo

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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 Jose,

Thanks, this looks like it might be very useful. So if I define a new saved
query in config-spring-geonetwork.xml, do I copy the entire bean section
(lines 34-38 in https://github.com/geonetwork/core-geonetwork/
blob/3.2.x/schemas/iso19139/src/main/resources/config-
spring-geonetwork.xml#L34) and repeat it, then give it a new id and name,
and then do I need to recompile geonetwork or just restart it?

Thanks again

Jo

On Fri, Sep 8, 2017 at 7:22 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Jo

This feature seem allowing to define xpath templates and use them later
for querying specific properties from the metadata.

Queries are defined in this file: https://github.com/geonetwork/
core-geonetwork/blob/3.2.x/schemas/iso19139/src/main/resourc
es/config-spring-geonetwork.xml#L34

API implementation: https://github.com/geonetwork/core-geonetwor
k/blob/3.2.x/services/src/main/java/org/fao/geonet/api/
records/MetadataSavedQueryApi.java

The API has some brief documentation, but can't find any additional
documentation in the manual or WIKI proposal.

Regards,
Jose García

On Thu, Sep 7, 2017 at 6:08 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi All,

I'm exploring the API for Geonetwork 3.2.x and there are operations for
records for "Listing Saved Queries" and "Applying Saved Queries". I might
be missing something, but I can't find any information on what these are
actually for- what is a saved query and how do I create one?

I'm actually looking for ways in which I can interrogate the records and
find out which ones are due to be updated. I can do this in the database
but if there's an API approach using some sort of query, that would be
much
better.

Thanks in advance for your help,

Jo

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
<https://maps.google.com/?q=17+West+Street,+Epsom,+Surrey,+KT18+ +7RL,+UK&entry=gmail&source=g&gt;
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
<https://maps.google.com/?q=120+Manor+Green+Road,+Epsom,+Surrey,+KT19+8LN&entry=gmail&source=g&gt;
VAT no.
864201149.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/project
s/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 13
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;6721
WD Bennekom
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;The
Netherlands
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;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.*

--
*Jo Cook*
t:+44 7930 524 155 <+44%207930%20524155>/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Jo

I guess you need to add a new bean as you indicate. The problem with this
file is that probably it's packaged in the jar file for the iso19139
schema, so at least you'll need to rebuild that schema and update the
related jar in GeoNetwork.

Indeed looks a nice feature, seem added for the WFS indexing feature, but
can be useful for more features. A nice improvement would be to setup these
queries in external config file (outside of jar) or in the database.

Regards,
Jose García

On Fri, Sep 8, 2017 at 12:32 PM, Jo Cook <jocook@anonymised.com> wrote:

Hi Jose,

Thanks, this looks like it might be very useful. So if I define a new
saved query in config-spring-geonetwork.xml, do I copy the entire bean
section (lines 34-38 in https://github.com/geonetwork
/core-geonetwork/blob/3.2.x/schemas/iso19139/src/main/
resources/config-spring-geonetwork.xml#L34) and repeat it, then give it a
new id and name, and then do I need to recompile geonetwork or just restart
it?

Thanks again

Jo

On Fri, Sep 8, 2017 at 7:22 AM, Jose Garcia <jose.garcia@anonymised.com>
wrote:

Hi Jo

This feature seem allowing to define xpath templates and use them later
for querying specific properties from the metadata.

Queries are defined in this file: https://github.com/geonetwork/
core-geonetwork/blob/3.2.x/schemas/iso19139/src/main/resourc
es/config-spring-geonetwork.xml#L34

API implementation: https://github.com/geonetwork/core-geonetwor
k/blob/3.2.x/services/src/main/java/org/fao/geonet/api/recor
ds/MetadataSavedQueryApi.java

The API has some brief documentation, but can't find any additional
documentation in the manual or WIKI proposal.

Regards,
Jose García

On Thu, Sep 7, 2017 at 6:08 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi All,

I'm exploring the API for Geonetwork 3.2.x and there are operations for
records for "Listing Saved Queries" and "Applying Saved Queries". I might
be missing something, but I can't find any information on what these are
actually for- what is a saved query and how do I create one?

I'm actually looking for ways in which I can interrogate the records and
find out which ones are due to be updated. I can do this in the database
but if there's an API approach using some sort of query, that would be
much
better.

Thanks in advance for your help,

Jo

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
<https://maps.google.com/?q=17+West+Street,+Epsom,+Surrey,+KT18+ +7RL,+UK&entry=gmail&source=g&gt;
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
<https://maps.google.com/?q=120+Manor+Green+Road,+Epsom,+Surrey,+KT19+8LN&entry=gmail&source=g&gt;
VAT no.
864201149.
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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/project
s/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 13
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;6721
WD Bennekom
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;The
Netherlands
<https://maps.google.com/?q=Veenderweg+13+6721+WD+Bennekom+The+Netherlands&entry=gmail&source=g&gt;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.*

--
*Jo Cook*
t:+44 7930 524 155 <+44%207930%20524155>/twitter:@archaeogeek

--
Astun Technology Ltd, The Coach House, 17 West Street
<https://maps.google.com/?q=17+West+Street&entry=gmail&source=g&gt;, Epsom,
Surrey, KT18 7RL, UK
t:+44 1372 744 009 <+44%201372%20744009> w: astuntechnology.com twitter:
@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
<https://maps.google.com/?q=120+Manor+Green+Road,+Epsom,+Surrey,+KT19+8LN&entry=gmail&source=g&gt;
VAT no. 864201149.

--

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