I'm working with Charlton (see his original message below). My suspicion is that what we are trying to do is not possible, but it would be very helpful if someone can confirm that >
Basically what we would like to do is perform a CSW harvest that pulls out GeoNetwork records based on the GN 'category' I've assigned (not the ISO 'topicCategory'). Category appears in the info.xml not the metadata.xml for a given record.
We have been able to harvest using the CSW properyName of 'any' or 'subject' for text in the metadata, but that does not appear to grab anything that is in the info.xml.
Anyone have knowledge/experience on this?
Kathy
-----Original Message-----
From: Charlton Galvarino [mailto:charlton@anonymised.com]
Sent: Wednesday, October 29, 2014 1:27 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] category vs. TopicCategory queryable
Hi, GN team.
I am trying to consume GN search results. I'd prefer to stick w/ CSW, but I'm having a tough time w/ categories.
If I perform a GET xml.search?category=dataportal, I see some results, e.g.:
<metadata>
<metadatacreationdate/>
<geonet:info xmlns:geonet="http://www.fao.org/geonetwork">
<id>36614</id>
<uuid>64cd3cb6-3a74-4990-8772-4af8b0714b1a</uuid>
<schema>iso19139</schema>
<createDate>2014-10-08T18:57:23</createDate>
<changeDate>2014-10-08T18:57:23</changeDate>
<source>e3dbbdf2-e706-43dd-a16e-1400d678044f</source>
<category>dataportal</category>
<selected>false</selected>
<category internal="true">dataset</category>
</geonet:info>
</metadata>
But if I perform a CSW POST query, I don't get any results at all.
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<PropertyIsLike wildCard="%" singleChar="_" escape="\\">
<PropertyName>TopicCategory</PropertyName>
<Literal>dataportal</Literal>
</PropertyIsLike>
</Filter>
</csw:Constraint>
The CSW GetCapabilities advertises TopicCateogry, but I'm not convinced they are one and the same. I can get CSW results if I use other searches, e.g. Title, though, so I don't believe CSW is holding me up.
In a nutshell, how can I pull back category-specific results w/ a CSW query?
TIA.
Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 : fax
charlton@anonymised.com
P.O. Box 50960
Columbia, SC 29250
------------------------------------------------------------------------------
_______________________________________________
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