[GeoNetwork-users] CSW query against 19139 content model

Against svn trunk, one is able to invoke a GetRecords query against
various dc/dct fields, i.e.:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
        <ogc:Or>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\\">
            <ogc:PropertyName>dc:title</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dct:abstract</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dc:subject</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
        </ogc:Or>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

Is there any way to do queries against 19139? I tried:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
          <ogc:PropertyIsEqualTo>

<ogc:PropertyName>/gmd:MD_Metadata/gmd:fileIdentifier/gco:CharacterStrin
g</ogc:PropertyName>

<ogc:Literal>9ff2e596-19df-48ae-b411-2d9c597d52a8</ogc:Literal>
          </ogc:PropertyIsEqualTo>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

...which results in no records found.

Thanks

..Tom

Hi Tom,

I'm running the BlueNet MEST svn trunk version and I tried the same approach of querying 19139 records, which apparently is not possible.

The following page has a list of queryable items:

http://trac.osgeo.org/geonetwork/wiki/CSW202Improvements

I also took a look into the source code (FieldMapper.java) and found a few queryable items. In your case you can try using:

<PropertyName>fileId</PropertyName>

That works for me.

Kind regards,
    Michael

-----Original Message-----
From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis@anonymised.com]
Sent: Thursday, 12 February 2009 11:07 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] CSW query against 19139 content model

Against svn trunk, one is able to invoke a GetRecords query against
various dc/dct fields, i.e.:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
        <ogc:Or>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\\">
            <ogc:PropertyName>dc:title</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dct:abstract</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dc:subject</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
        </ogc:Or>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

Is there any way to do queries against 19139? I tried:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
          <ogc:PropertyIsEqualTo>

<ogc:PropertyName>/gmd:MD_Metadata/gmd:fileIdentifier/gco:Char
acterStrin
g</ogc:PropertyName>

<ogc:Literal>9ff2e596-19df-48ae-b411-2d9c597d52a8</ogc:Literal>
          </ogc:PropertyIsEqualTo>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

...which results in no records found.

Thanks

..Tom

--------------------------------------------------------------
----------------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing
skills and code to
build responsive, highly engaging applications that combine
the power of local
resources and data with the reach of the web. Download the
Adobe AIR SDK and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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

Hi, some details.

Michael.Stegherr@anonymised.com wrote:

Hi Tom,

I'm running the BlueNet MEST svn trunk version and I tried the same approach of querying 19139 records, which apparently is not possible.

The following page has a list of queryable items:

http://trac.osgeo.org/geonetwork/wiki/CSW202Improvements

The list of queryables described in this wiki page are currently
implemented in this sandbox :
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/sandbox/GeoSource/csw/
We also added a configuration file to allow users to add new queryable
based on lucene index fields.

If you're using trunk or 2.2, the queryables are the one described in
FieldMapper class (Bluenet is probably the same).
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/src/org/fao/geonet/kernel/csw/services/getrecords/FieldMapper.java

Ciao. Francois

I also took a look into the source code (FieldMapper.java) and found a few queryable items. In your case you can try using:

<PropertyName>fileId</PropertyName>

That works for me.

Kind regards,
    Michael

-----Original Message-----
From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis@anonymised.com]
Sent: Thursday, 12 February 2009 11:07 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] CSW query against 19139 content model

Against svn trunk, one is able to invoke a GetRecords query against
various dc/dct fields, i.e.:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
        <ogc:Or>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\\">
            <ogc:PropertyName>dc:title</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dct:abstract</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
          <ogc:PropertyIsLike wildCard="%" singleChar="_"
escapeChar="\">
            <ogc:PropertyName>dc:subject</ogc:PropertyName>
            <ogc:Literal>%frog%</ogc:Literal>
          </ogc:PropertyIsLike>
        </ogc:Or>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

Is there any way to do queries against 19139? I tried:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<csw:GetRecords xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns=""
outputSchema="http://www.opengis.net/cat/csw/2.0.2&quot;
outputFormat="application/xml" version="2.0.2" resultType="results"
service="CSW" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd&quot;&gt;
  <csw:Query typeNames="csw:Record">
    <csw:ElementSetName>full</csw:ElementSetName>
    <csw:Constraint version="1.1.0">
      <ogc:Filter>
          <ogc:PropertyIsEqualTo>

<ogc:PropertyName>/gmd:MD_Metadata/gmd:fileIdentifier/gco:Char
acterStrin
g</ogc:PropertyName>

<ogc:Literal>9ff2e596-19df-48ae-b411-2d9c597d52a8</ogc:Literal>
          </ogc:PropertyIsEqualTo>
      </ogc:Filter>
    </csw:Constraint>
  </csw:Query>
</csw:GetRecords>

...which results in no records found.

Thanks

..Tom

--------------------------------------------------------------
----------------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing
skills and code to
build responsive, highly engaging applications that combine
the power of local
resources and data with the reach of the web. Download the
Adobe AIR SDK and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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