[GeoNetwork-users] CSW - How to use GetRecords

No one tested GetRecords?

Regards
Marco

(attachments)

forwarded message (3.68 KB)

Hi Marco,
I think the test example doesn't work in the client... Not a very good example indeed.
Jeroen

On Apr 8, 2008, at 8:57 AM, Marco Vimercati wrote:

No one tested GetRecords?

Regards
Marco

From: Marco Vimercati <mvimercati@anonymised.com>
Date: April 4, 2008 10:03:59 AM GMT+02:00
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] CSW - How to use GetRecords

Hi all
I just installed GN 2.2 Final, before I was using the RCs.
I can't get the CSW working: GetCapabilities is Ok, but GetRecords returns
errors. I don't know there's a problem or I'm not able to use it :slight_smile:

I did the test with CSW test client, and that's the result with the
query "AnyText like %africa%" :

========================================================0
Exception : org.fao.geonet.csw.common.exceptions.InvalidParameterValueEx:
code=InvalidParameterValue, locator=CqlText, message=AnyText like %africa%

GET /geonetwork/srv/en/csw?request=GetRecords&service=CSW&version=2.0.1&namespace=csw%3Ahttp%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw&constraint=AnyText+like+%25africa%25&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8080
Cookie: JSESSIONID=CFB7BA17E13EF83A069DECE58B009D42

==============================================================
OK

Server: Apache-Coyote/1.1
Pragma: no-cache
Cache-Control: no-cache
Expires: -1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 04 Apr 2008 08:02:43 GMT

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot; version="1.0.0">
<ows:Exception exceptionCode="InvalidParameterValue" locator="CqlText">
   <ows:ExceptionText>AnyText like %africa%</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

How can I user GetRecords? I want simply get all the records from the catalog.

Regards
Marco Vimercati

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

Jeroen,
I tryied with other queries, but I was never able to use GetRecords.
Can you provide me an example that works?

Best regards
Marco

Hi Marco,
I think the test example doesn't work in the client... Not a very good
example indeed.
Jeroen

On Apr 8, 2008, at 8:57 AM, Marco Vimercati wrote:
> No one tested GetRecords?
>
>
> Regards
> Marco
>
> From: Marco Vimercati <mvimercati@anonymised.com>
> Date: April 4, 2008 10:03:59 AM GMT+02:00
> To: geonetwork-users@lists.sourceforge.net
> Subject: [GeoNetwork-users] CSW - How to use GetRecords
>
>
> Hi all
> I just installed GN 2.2 Final, before I was using the RCs.
> I can't get the CSW working: GetCapabilities is Ok, but GetRecords
> returns
> errors. I don't know there's a problem or I'm not able to use it :slight_smile:
>
> I did the test with CSW test client, and that's the result with the
> query "AnyText like %africa%" :
>
> ========================================================0
> Exception :
> org.fao.geonet.csw.common.exceptions.InvalidParameterValueEx:
> code=InvalidParameterValue, locator=CqlText, message=AnyText like
> %africa%
> ==============================================================
> GET /geonetwork/srv/en/csw?
> request=GetRecords&service=CSW&version=2.0.1&namespace=csw%3Ahttp%3A
> %2F%2Fwww.opengis.net%2Fcat%2Fcsw&constraint=AnyText+like+%25africa
> %25&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0
> User-Agent: Jakarta Commons-HttpClient/3.0.1
> Host: localhost:8080
> Cookie: JSESSIONID=CFB7BA17E13EF83A069DECE58B009D42
>
>
> ==============================================================
> OK
>
> Server: Apache-Coyote/1.1
> Pragma: no-cache
> Cache-Control: no-cache
> Expires: -1
> Content-Type: application/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Fri, 04 Apr 2008 08:02:43 GMT
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
> version="1.0.0">
> <ows:Exception exceptionCode="InvalidParameterValue"
> locator="CqlText">
> <ows:ExceptionText>AnyText like %africa%</ows:ExceptionText>
> </ows:Exception>
> </ows:ExceptionReport>
> ========================================================
>
>
> How can I user GetRecords? I want simply get all the records from
> the catalog.
>
> Regards
> Marco Vimercati
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketpl
>ace _______________________________________________
> 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

--
________________________________________
Marco Vimercati
Earth Observation Dept

Tel. +39.0238048.241
Fax +39.023086458
Email mvimercati@anonymised.com

Carlo Gavazzi Space S.p.A.
Via Gallarate, 150 - 20151 Milano MI - Italy
www.cgspace.it

<< Le informazioni contenute in questo messaggio di posta elettronica e
relativi allegati sono riservate e confidenziali e ne è vietata la diffusione
in qualunque modo eseguita. Qualora Lei non fosse la persona a cui il
presente messaggio è destinato, La invitiamo ad eliminarlo e a darcene
gentile comunicazione. Quanto precede ai fini del rispetto delle Legge 675/96
e del Decreto Legislativo 30/06/2003 n.196, sulla tutela dei dati personali

<< This e-mail is confidential and may well also be legally privileged. If you
have received it in error, you are on notice of its status. Please notify us
immediately by reply e-mail and then delete this message from your system.
Please do not copy it or use it for any purposes, or disclose its contents to
any other person: to do so could be a breach of confidence. Thank you for
your co-operation. Please contact our IT Helpdesk on +3902380481 or email
ml_servizi.informatici@anonymised.com if you need assistance>>

Marco Vimercati wrote:

Jeroen,
I tryied with other queries, but I was never able to use GetRecords.
Can you provide me an example that works?

Using the csw client and the following filter works for me :

<?xml version="1.0" encoding="UTF-8"?>
<Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
    <PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <PropertyName>any</PropertyName>
      <Literal>basin%</Literal>
    </PropertyIsLike>
</Filter>

HTH. Francois

Thanks a lot!
Now I'm able to search metadata in the catalogue.
I confirm that the string
any = %
works, and retrieve all the metadata in the catalogue!

best regards
Marco

Marco Vimercati wrote:
> Jeroen,
> I tryied with other queries, but I was never able to use GetRecords.
> Can you provide me an example that works?

Using the csw client and the following filter works for me :

<?xml version="1.0" encoding="UTF-8"?>
<Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
    <PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <PropertyName>any</PropertyName>
      <Literal>basin%</Literal>
    </PropertyIsLike>
</Filter>

HTH. Francois

hello,

today I comitted a fix to the trunk such that AnyText is accepted.

regards
Heikki

Marco Vimercati-2 wrote:

Thanks a lot!
Now I'm able to search metadata in the catalogue.
I confirm that the string
any = %
works, and retrieve all the metadata in the catalogue!

best regards
Marco

Marco Vimercati wrote:
> Jeroen,
> I tryied with other queries, but I was never able to use GetRecords.
> Can you provide me an example that works?

Using the csw client and the following filter works for me :

<?xml version="1.0" encoding="UTF-8"?>
<Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
    <PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <PropertyName>any</PropertyName>
      <Literal>basin%</Literal>
    </PropertyIsLike>
</Filter>

HTH. Francois

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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

--
View this message in context: http://www.nabble.com/Fwd%3A--CSW---How-to-use-GetRecords-tp16557305p21019132.html
Sent from the geonetwork-users mailing list archive at Nabble.com.