[GeoNetwork-users] csw: get record by property name

Hi,

I am trying to get a record of the catalog by using the request "GetRecords". I don't know its metadata id, but the value of the field "code" that is showed in the section "Identification Info". To do so I am using the XML showed below. It does return nothing. I think that the problem is related to the name of the property that stores the code. What is its internal name?

<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot; service="CSW" version="2.0.2" outputFormat="application/xml">
<csw:Query typeNames="csw:Record">
<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns="http://www.opengis.net/ogc&quot;&gt;
<ogc:PropertyIsEqualTo matchCase="false">
<ogc:PropertyName>code</ogc:PropertyName>
<ogc:Literal>roads03</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>

Thank you. Regards,

Robert.

Hi Robert

The CSW Capabilities document returns the list of queryable fields in the
GetRecords section.

You can find the mapping with field names to metadata properties in CSW
2.0.2 spec.

Regards,
Jose GarcĂ­a

On Tue, Jan 11, 2011 at 3:19 PM, Robert Holland <robert.holland@anonymised.com>wrote:

  Hi,

  I am trying to get a record of the catalog by using the request
"GetRecords". I don't know its metadata id, but the value of the field
"code" that is showed in the section "Identification Info". To do so I am
using the XML showed below. It does return nothing. I think that the problem
is related to the name of the property that stores the code. What is its
internal name?

<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
service="CSW" version="2.0.2" outputFormat="application/xml">
   <csw:Query typeNames="csw:Record">
      <csw:Constraint version="1.1.0">
         <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="
http://www.opengis.net/gml&quot; xmlns="http://www.opengis.net/ogc&quot;&gt;
            <ogc:PropertyIsEqualTo matchCase="false">
               <ogc:PropertyName>code</ogc:PropertyName>
               <ogc:Literal>roads03</ogc:Literal>
            </ogc:PropertyIsEqualTo>
         </ogc:Filter>
      </csw:Constraint>
   </csw:Query>
</csw:GetRecords>

  Thank you. Regards,

  Robert.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any
company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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