[GeoNetwork-users] Metadata search with keyword including colon character

Dear all,

I write to this list as i faced an issue with metadata searching in Geonetwork. Some metadata include as keyword a unique identifier /e.g. //urn:lsid:marinespecies.org:taxname:126436/
Searching on this keyword, I don't get any result. I've assumed it is due to the colon character.

Does anyone know how i could run CSW queries with this type of keyword?

Thanks in advance for your help

Best regards
Emmanuel

<http://fr.linkedin.com/in/emmanuelblondel1&gt;

Hi Emmanuel,
Could you give more insight on the complete request you are using.
In Geonetwork documentation I got the information to include in CSW
request for keyword is :

<ows:Keywords>
<ows:Keyword>CSW</ows:Keyword>
<ows:Keyword>CubeWerx</ows:Keyword>
<ows:Keyword>geospatial</ows:Keyword>
<ows:Keyword>catalogue</ows:Keyword>
</ows:Keywords>

And you can run the request on "Dev HTTP Client" an add on from Google
Chrome on the URL where geonetwork is installed
"localhost:8080/geonetwork/srv/eng/csw?".

-- cheers
Manjunath

On Tue, Jan 15, 2013 at 10:03 PM, Emmanuel Blondel <
emmanuel.blondel1@anonymised.com> wrote:

Dear all,

I write to this list as i faced an issue with metadata searching in
Geonetwork. Some metadata include as keyword a unique identifier /e.g.
//urn:lsid:marinespecies.org:taxname:126436/
Searching on this keyword, I don't get any result. I've assumed it is
due to the colon character.

Does anyone know how i could run CSW queries with this type of keyword?

Thanks in advance for your help

Best regards
Emmanuel

<http://fr.linkedin.com/in/emmanuelblondel1&gt;

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
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,

I'm using the FAO geonetwork. First, i was using the gui and then i've used the CSW ISO profile test in the Geonetwork administration.
Actually, the information i want to use is a keyword, but I've searched on any text, not especially on keywords.
Here an example of request I do:

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW" version="2.0.2">
     <csw:Query typeNames="csw:Record">
         <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="_" escapeChar="\">
<PropertyName>AnyText</PropertyName>
                     <Literal>*urn:lsid:marinespecies.org:taxname:126436*</Literal>
                 </PropertyIsLike>
             </Filter>
         </csw:Constraint>
     </csw:Query>
</csw:GetRecords>

I should get one result with this request, but I don't get nothing. This literal term contains colon and dot, and it seems they are not taken into account by Geonetwork to search metadata.

Emmanuel

Le 15/01/2013 22:35, Manjunath Kanakagiri a écrit :

Hi Emmanuel,
Could you give more insight on the complete request you are using.
In Geonetwork documentation I got the information to include in CSW request for keyword is :

<ows:Keywords>
<ows:Keyword>CSW</ows:Keyword>
<ows:Keyword>CubeWerx</ows:Keyword>
<ows:Keyword>geospatial</ows:Keyword>
<ows:Keyword>catalogue</ows:Keyword>
</ows:Keywords>

And you can run the request on "Dev HTTP Client" an add on from Google Chrome on the URL where geonetwork is installed "localhost:8080/geonetwork/srv/eng/csw?".

-- cheers
Manjunath

On Tue, Jan 15, 2013 at 10:03 PM, Emmanuel Blondel <emmanuel.blondel1@anonymised.com <mailto:emmanuel.blondel1@anonymised.com>> wrote:

    Dear all,

    I write to this list as i faced an issue with metadata searching in
    Geonetwork. Some metadata include as keyword a unique identifier /e.g.
    //urn:lsid:marinespecies.org:taxname:126436/
    Searching on this keyword, I don't get any result. I've assumed it is
    due to the colon character.

    Does anyone know how i could run CSW queries with this type of
    keyword?

    Thanks in advance for your help

    Best regards
    Emmanuel

    <http://fr.linkedin.com/in/emmanuelblondel1&gt;
    ------------------------------------------------------------------------------
    Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
    and more. Get SQL Server skills now (including 2012) with
    LearnDevNow -
    200+ hours of step-by-step video tutorials by Microsoft MVPs and
    experts.
    SALE $99.99 this month only - learn more at:
    http://p.sf.net/sfu/learnmore_122512
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

Hi,
I am not sure of the search word whether it is present in the metadata or
not, but few modifications to the input xml like:
resultType="results"
and adding the tag:
<csw:ElementSetName>summary</csw:ElementSetName>
I am able to get the response. The complete *post request xml* is:
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW" version="2.0.2"
resultType="results">
     <csw:Query typeNames="csw:Record">
         <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="_"
escapeChar="\">
<PropertyName>AnyText</PropertyName>
<Literal>%%</Literal>
                 </PropertyIsLike>
             </Filter>
         </csw:Constraint>
<csw:ElementSetName>summary</csw:ElementSetName>
     </csw:Query>
</csw:GetRecords>

May be now you can give a try and respond back.

--cheers
Manjunath

On Tue, Jan 15, 2013 at 10:03 PM, Emmanuel Blondel <
emmanuel.blondel1@anonymised.com> wrote:

Dear all,

I write to this list as i faced an issue with metadata searching in
Geonetwork. Some metadata include as keyword a unique identifier /e.g.
//urn:lsid:marinespecies.org:taxname:126436/
Searching on this keyword, I don't get any result. I've assumed it is
due to the colon character.

Does anyone know how i could run CSW queries with this type of keyword?

Thanks in advance for your help

Best regards
Emmanuel

<http://fr.linkedin.com/in/emmanuelblondel1&gt;

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
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

--
Thanks
Manjunath
+61424472153

The literal i used is a keyword within the metadata.

If i run this:

<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW" version="2.0.2" resultType="results">
      <csw:Query typeNames="csw:Record">
          <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="_" escapeChar="\">
<PropertyName>AnyText</PropertyName>
<Literal>%urn:lsid:marinespecies.org:taxname:126436%</Literal>
                  </PropertyIsLike>
              </Filter>
          </csw:Constraint>
<csw:ElementSetName>summary</csw:ElementSetName>
      </csw:Query>
</csw:GetRecords>

I don't get any result..
Same if i use PropertyIsEqualTo instead of PropertyIsLike, and remove the '%'.

Le 17/01/2013 00:58, Manjunath Kanakagiri a écrit :

Hi,
I am not sure of the search word whether it is present in the metadata or not, but few modifications to the input xml like:
resultType="results"
and adding the tag:
<csw:ElementSetName>summary</csw:ElementSetName>
I am able to get the response. The complete *post request xml* is:
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;
xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; service="CSW" version="2.0.2" resultType="results">
     <csw:Query typeNames="csw:Record">
         <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="_" escapeChar="\">
<PropertyName>AnyText</PropertyName>
<Literal>%%</Literal>
                 </PropertyIsLike>
             </Filter>
         </csw:Constraint>
<csw:ElementSetName>summary</csw:ElementSetName>
     </csw:Query>
</csw:GetRecords>

May be now you can give a try and respond back.

--cheers
Manjunath

On Tue, Jan 15, 2013 at 10:03 PM, Emmanuel Blondel <emmanuel.blondel1@anonymised.com <mailto:emmanuel.blondel1@anonymised.com>> wrote:

    Dear all,

    I write to this list as i faced an issue with metadata searching in
    Geonetwork. Some metadata include as keyword a unique identifier /e.g.
    //urn:lsid:marinespecies.org:taxname:126436/
    Searching on this keyword, I don't get any result. I've assumed it is
    due to the colon character.

    Does anyone know how i could run CSW queries with this type of
    keyword?

    Thanks in advance for your help

    Best regards
    Emmanuel

    <http://fr.linkedin.com/in/emmanuelblondel1&gt;
    ------------------------------------------------------------------------------
    Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
    and more. Get SQL Server skills now (including 2012) with
    LearnDevNow -
    200+ hours of step-by-step video tutorials by Microsoft MVPs and
    experts.
    SALE $99.99 this month only - learn more at:
    http://p.sf.net/sfu/learnmore_122512
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
Thanks
Manjunath
+61424472153

--
*Emmanuel Blondel*
GIS Consultant
Engineer in Agronomy & Environment

Geographic Information Systems
in Agronomy - Environment - Fisheries
Email: emmanuel.blondel1@anonymised.com - Emmanuel.Blondel@anonymised.com
View my LinkedIn profileView my LinkedIn profile <http://fr.linkedin.com/in/emmanuelblondel1&gt;