GeoNetwork (georchestra)

9 views
Skip to first unread message

Chiranth B U

unread,
Oct 20, 2022, 5:39:20 AM10/20/22
to georchestra-dev
Hello everyone...hope you're ll doing well. am looking for an help on georchestra where i would i need the keywords to be of my own selected choice while i upload the file, later after the researcg got to know that it come from a GMET theme and it is a external theme. 
so the ask is can i create a theme with of own keywords which will allow me to select it during uploading the file, if yes how can i do that..? 
 i have the georchestra application running on docker application on ubuntu machine. 

any help would be appreciated. Thanks in advance.

regards 
chiranth 

François Van Der Biest

unread,
Oct 20, 2022, 2:29:25 PM10/20/22
to georche...@googlegroups.com
Hi !
You just need to upload your own thesaurus into geonetwork, and fill it's identifier into your datafeeder's config (here: https://github.com/georchestra/datadir/blob/6d08850c21460d9099574a6b444f3586129e8940/datafeeder/frontend-config.json#L26)
Hope this helps !
Regards,
F.

--
--
projet: http://www.georchestra.org/

---
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "georchestra-dev".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse georchestra-d...@googlegroups.com.
Cette discussion peut être lue sur le Web à l'adresse https://groups.google.com/d/msgid/georchestra-dev/d56ff043-3f8a-4b64-879c-fae7bd18930fn%40googlegroups.com.

Chiranth B U

unread,
Oct 21, 2022, 1:50:39 AM10/21/22
to georchestra-dev
Hello 
francois, 

Thanks for the reply, it did work thank you. if you could also help me on another issue it would be great. 
am using the CSW to fetch the records, I can filter the records based on the title or any other type. but am facing issues with fetching it with dc:subject. I did find a solution from (  here https://github.com/geopython/pycsw/blob/master/tests/functionaltests/suites/default/post/GetRecords-cql-title.xml ) which did not work i also replaced it with gmd:MD_TopicCategoryCode and tried which is also not working. 

Any help on this would be appreciated. Thanks in advance.

François Van Der Biest

unread,
Oct 21, 2022, 2:58:55 AM10/21/22
to georche...@googlegroups.com
Did you try something like this ?

<ogc:PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">
<ogc:PropertyName>Subject</ogc:PropertyName>
<ogc:Literal>antenna</ogc:Literal>
</ogc:PropertyIsLike>

Chiranth B U

unread,
Oct 21, 2022, 3:12:42 AM10/21/22
to georche...@googlegroups.com
I did try that, but unfortunately, shows Zero results matched. not sure why..any idea why it could be ? 

for your reference : 

csw query: <?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
service="CSW" version="2.0.2" resultType="results">
<csw:Query typeNames="csw:Record">
<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">
<ogc:PropertyName>Subject</ogc:PropertyName>
<ogc:Literal>school</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>

my response:
<?xml version="1.0" encoding="UTF-8"?>
<csw:SearchStatus timestamp="2022-10-21T07:09:45.388541Z" />
<csw:SearchResults numberOfRecordsMatched="0" numberOfRecordsReturned="0" elementSet="summary" nextRecord="0" />
</csw:GetRecordsResponse>

the data from cswrecords:

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">
  <csw:SearchStatus timestamp="2022-10-21T07:09:32.690863Z" />
  <csw:SearchResults numberOfRecordsMatched="3" numberOfRecordsReturned="3" elementSet="summary" nextRecord="0">
    <csw:SummaryRecord xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:geonet="http://www.fao.org/geonetwork">
      <dc:identifier>d09dbe54-b84c-4d9a-a6a4-13f2e99f68b3</dc:identifier>
      <dc:title>Yakkali Village Map</dc:title>
      <dc:type>series</dc:type>
      <dc:subject>Hospitals</dc:subject>
      <dc:format>SHP</dc:format>
      <dct:abstract>Yakkali Village Map</dct:abstract>
    </csw:SummaryRecord>
    <csw:SummaryRecord xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:geonet="http://www.fao.org/geonetwork">
      <dc:identifier>a5b52038-1127-4a92-a81f-20348cfa76f7</dc:identifier>
      <dc:title>Dhaanvi Landmarks</dc:title>
      <dc:type>series</dc:type>
      <dc:subject>Schools</dc:subject>
      <dc:format>SHP</dc:format>
      <dct:abstract>Dhaanvi Landmarks</dct:abstract>
    </csw:SummaryRecord>
    <csw:SummaryRecord xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:geonet="http://www.fao.org/geonetwork">
      <dc:identifier>0ed6a460-6ae4-45fa-9234-de15d6a66c51</dc:identifier>
      <dc:title>Hospitals Near hindupur</dc:title>
      <dc:type>series</dc:type>
      <dc:subject>Ameneties</dc:subject>
      <dc:format>SHP</dc:format>
      <dct:abstract>Hospitals Near hindupur</dct:abstract>
    </csw:SummaryRecord>
  </csw:SearchResults>
</csw:GetRecordsResponse>

so if you notice i do have the data for subject called hospital and schools but when i use it on the query it gives no match found :( .


François Van Der Biest

unread,
Oct 21, 2022, 7:32:39 AM10/21/22
to georche...@googlegroups.com
No idea ...

Perhaps you should try with the following ?

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" startPosition="1" maxRecords="20" xmlns:gmd="http://www.isotc211.org/2005/gmd">

<csw:Query typeNames="csw:Record">
<csw:ElementSetName>full</csw:ElementSetName>

<csw:Constraint version="1.1.0">
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsLike matchCase="false" wildCard="*" singleChar="." escapeChar="!">
<ogc:PropertyName>Subject</ogc:PropertyName>
<ogc:Literal>school</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Reply all
Reply to author
Forward
0 new messages