[GeoNetwork-users] CSW GetRecords Question

Hello everybody,

I just installed GeoNetwork this morning and received the "Hydrological Basins in Africa (Sample record, please remove!)" sample data, which I can search for via the web interface.

Now, I want to access the same catalogue entry via the GetRecords operation of the CSW interface.
Via the "CSW 2.0.1 test application" I can create the following request:

POST /geonetwork/srv/en/csw
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8080
Content-Length: 636
Content-Type: application/xml; charset=UTF8

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw&quot; service="CSW" version="2.0.1" resultType="results" startPosition="1" maxRecords="10">
  <csw:Query>
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <Filter xmlns="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot;&gt;
        <PropertyIsLike wildCard="%" singleChar="_" escape="\">
          <PropertyName>AnyText</PropertyName>
          <Literal>%AFRICA%</Literal>
        </PropertyIsLike>
      </Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

This results to the response:

Date: Mon, 28 Jan 2008 16:26:02 GMT
Server: Jetty/5.1.5rc2 (Windows XP/5.1 x86 java/1.5.0_08
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=3n4opl7cqbi88;Path=/geonetwork
Content-Type: application/xml
Pragma: no-cache
Cache-Control: no-cache
Expires: -1
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
  <csw:SearchStatus status="complete" />
  <csw:SearchResults numberOfRecordsMatched="0" numberOfRecordsReturned="0" elementSet="full" />
</csw:GetRecordsResponse>

What is a valid request to receive a match for the catalogue entry?

Best regards,

Desiree

--
Dr. Désirée Hilbring,
Fraunhofer IITB, Abteilung IMT,
Fraunhoferstr. 1, 76131 Karlsruhe, Germany
Telefon: +49(0)721/6091-463
mailto:hilbring@anonymised.com
http://www.iitb.fhg.de/

Hi Desiree,

For me, a filter such as :
<?xml version="1.0" encoding="UTF-8"?>
<Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
  <And>
    <PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <PropertyName>any</PropertyName>
      <Literal>africa%</Literal>
    </PropertyIsLike>
  </And>
</Filter>
works fine using propertyName = any instead of AnyText. Maybe a more
general question is what kind of propertyName is supported by the csw
service of GeoNetwork ? is the search criteria of the main.search
service works with the csw service (ie. any, themekey, category, paper,
digital, title, abstract, bbox ...) ?

Thanks
Francois

Desiree Hilbring wrote:

Hello everybody,

I just installed GeoNetwork this morning and received the "Hydrological Basins in Africa (Sample record, please remove!)" sample data, which I can search for via the web interface.

Now, I want to access the same catalogue entry via the GetRecords operation of the CSW interface.
Via the "CSW 2.0.1 test application" I can create the following request:

POST /geonetwork/srv/en/csw
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8080
Content-Length: 636
Content-Type: application/xml; charset=UTF8

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw&quot; service="CSW" version="2.0.1" resultType="results" startPosition="1" maxRecords="10">
  <csw:Query>
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <Filter xmlns="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot;&gt;
        <PropertyIsLike wildCard="%" singleChar="_" escape="\">
          <PropertyName>AnyText</PropertyName>
          <Literal>%AFRICA%</Literal>
        </PropertyIsLike>
      </Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

This results to the response:

Date: Mon, 28 Jan 2008 16:26:02 GMT
Server: Jetty/5.1.5rc2 (Windows XP/5.1 x86 java/1.5.0_08
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=3n4opl7cqbi88;Path=/geonetwork
Content-Type: application/xml
Pragma: no-cache
Cache-Control: no-cache
Expires: -1
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
  <csw:SearchStatus status="complete" />
  <csw:SearchResults numberOfRecordsMatched="0" numberOfRecordsReturned="0" elementSet="full" />
</csw:GetRecordsResponse>

What is a valid request to receive a match for the catalogue entry?

Best regards,

Desiree

--
Dr. Désirée Hilbring,
Fraunhofer IITB, Abteilung IMT,
Fraunhoferstr. 1, 76131 Karlsruhe, Germany
Telefon: +49(0)721/6091-463
mailto:hilbring@anonymised.com
http://www.iitb.fhg.de/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Hello Francois,

For me, a filter such as :
<?xml version="1.0" encoding="UTF-8"?>
<Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
  <And>
    <PropertyIsLike wildCard="%" singleChar="_" escape="\">
      <PropertyName>any</PropertyName>
      <Literal>africa%</Literal>
    </PropertyIsLike>
  </And>
</Filter>
works fine using propertyName = any instead of AnyText. Maybe
a more general question is what kind of propertyName is
supported by the csw service of GeoNetwork ? is the search
criteria of the main.search service works with the csw
service (ie. any, themekey, category, paper, digital, title,
abstract, bbox ...) ?

Yes that worked for me as well. Reading http://geonetwork-opensource.org/documentation/how-to/testing-the-ogc-csw-2-0-1-compliance, I assumed that the CSW interface would support
the core queryable properties of the CSW 2.0.1 Spec, Section 6.3.2.
That is not the case?
Where do I find a list of the search criteria of main.search?

Thanks Desiree

Thanks
Francois

Desiree Hilbring wrote:
> Hello everybody,
>
> I just installed GeoNetwork this morning and received the
"Hydrological Basins in Africa (Sample record, please
remove!)" sample data, which I can search for via the web interface.
>
> Now, I want to access the same catalogue entry via the
GetRecords operation of the CSW interface.
> Via the "CSW 2.0.1 test application" I can create the
following request:
>
> POST /geonetwork/srv/en/csw
> User-Agent: Jakarta Commons-HttpClient/3.0.1
> Host: localhost:8080
> Content-Length: 636
> Content-Type: application/xml; charset=UTF8
>
> <?xml version="1.0" encoding="UTF-8"?> <csw:GetRecords
> xmlns:csw="http://www.opengis.net/cat/csw&quot; service="CSW"
version="2.0.1" resultType="results" startPosition="1"
maxRecords="10">
> <csw:Query>
> <csw:ElementSetName>full</csw:ElementSetName>
> <csw:Constraint version="1.1.0">
> <Filter xmlns="http://www.opengis.net/ogc&quot;
xmlns:gml="http://www.opengis.net/gml&quot;&gt;
> <PropertyIsLike wildCard="%" singleChar="_" escape="\">
> <PropertyName>AnyText</PropertyName>
> <Literal>%AFRICA%</Literal>
> </PropertyIsLike>
> </Filter>
> </csw:Constraint>
> </csw:Query>
> </csw:GetRecords>
>
> This results to the response:
>
> Date: Mon, 28 Jan 2008 16:26:02 GMT
> Server: Jetty/5.1.5rc2 (Windows XP/5.1 x86 java/1.5.0_08
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Set-Cookie: JSESSIONID=3n4opl7cqbi88;Path=/geonetwork
> Content-Type: application/xml
> Pragma: no-cache
> Cache-Control: no-cache
> Expires: -1
> Transfer-Encoding: chunked
>
> <?xml version="1.0" encoding="UTF-8"?> <csw:GetRecordsResponse
> xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
> <csw:SearchStatus status="complete" />
> <csw:SearchResults numberOfRecordsMatched="0"
> numberOfRecordsReturned="0" elementSet="full" />
> </csw:GetRecordsResponse>
>
> What is a valid request to receive a match for the catalogue entry?
>
> Best regards,
>
> Desiree
>
> --
> Dr. Désirée Hilbring,
> Fraunhofer IITB, Abteilung IMT,
> Fraunhoferstr. 1, 76131 Karlsruhe, Germany
> Telefon: +49(0)721/6091-463
> mailto:hilbring@anonymised.com
> http://www.iitb.fhg.de/
>
>
----------------------------------------------------------------------
> --- This SF.net email is sponsored by: Microsoft Defy all
challenges.
> Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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

Desiree Hilbring wrote:

Yes that worked for me as well. Reading http://geonetwork-opensource.org/documentation/how-to/testing-the-ogc-csw-2-0-1-compliance, I assumed that the CSW interface would support
the core queryable properties of the CSW 2.0.1 Spec, Section 6.3.2.
That is not the case?

I don't know.

Where do I find a list of the search criteria of main.search?

You could go to the main page, click on the "advanced" search and if
using Firefox, right click, page info, forms tab and advsearch forms.
Here you have all search criteria defined in the user interface.

Another option is to have a look to lucene.xml file.

HTH. Francois

Thanks Desiree

Thanks
Francois

Desiree Hilbring wrote:

Hello everybody,

I just installed GeoNetwork this morning and received the

"Hydrological Basins in Africa (Sample record, please
remove!)" sample data, which I can search for via the web interface.

Now, I want to access the same catalogue entry via the

GetRecords operation of the CSW interface.

Via the "CSW 2.0.1 test application" I can create the

following request:

POST /geonetwork/srv/en/csw
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8080
Content-Length: 636
Content-Type: application/xml; charset=UTF8

<?xml version="1.0" encoding="UTF-8"?> <csw:GetRecords
xmlns:csw="http://www.opengis.net/cat/csw&quot; service="CSW"

version="2.0.1" resultType="results" startPosition="1"
maxRecords="10">

  <csw:Query>
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <Filter xmlns="http://www.opengis.net/ogc&quot;

xmlns:gml="http://www.opengis.net/gml&quot;&gt;

        <PropertyIsLike wildCard="%" singleChar="_" escape="\">
          <PropertyName>AnyText</PropertyName>
          <Literal>%AFRICA%</Literal>
        </PropertyIsLike>
      </Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

This results to the response:

Date: Mon, 28 Jan 2008 16:26:02 GMT
Server: Jetty/5.1.5rc2 (Windows XP/5.1 x86 java/1.5.0_08
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=3n4opl7cqbi88;Path=/geonetwork
Content-Type: application/xml
Pragma: no-cache
Cache-Control: no-cache
Expires: -1
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?> <csw:GetRecordsResponse
xmlns:csw="http://www.opengis.net/cat/csw&quot;&gt;
  <csw:SearchStatus status="complete" />
  <csw:SearchResults numberOfRecordsMatched="0"
numberOfRecordsReturned="0" elementSet="full" />
</csw:GetRecordsResponse>

What is a valid request to receive a match for the catalogue entry?

Best regards,

Desiree