wiki:proposals/InspireSearch

Inspire Search criteria (optional)

Date 2010/15/03
Contact(s) Jose Garcia.
Last edited Timestamp
Status draft
Assigned to release 2.5.0
Resources NGR

Overview

This proposal extends the GeoNetwork search interface to allow search metadata using INSPIRE criteria. The proposal is based on NGR project, that extended the Search GUI to allow search of INSPIRE compliant metadata.

INSPIRE search panel in NGR

In this website you can check the proposal described working:

http://nordic.geocat.net/geonetwork/

Proposal Type

  • Type: GUI Change, Core Change
  • App: GeoNetwork
  • Module: Lucene Index, Search Interface

Voting History

  • Vote not yet proposed

Motivations

Extend the current search gui to support the search of metadata using INSPIRE criteria.

Proposal

Configure the avalability of INSPIRE options

The search for INSPIRE metadata panel is not visible by default. A mechanism is added in order to turn on/off INSPIRE search panel in config-gui.xml.

<config>
  <!--
    INSPIRE integration:
    Set this parameter to "1" to enable INSPIRE, showing INSPIRE panel in advanced searcher.
   -->
  <inspire>0</inspire>
</config>

This parameter can be used to enable/disable the avalability of INSPIRE in GeoNetwork, maybe also for InspireView

Search panel

If INSPIRE is enabled, the INSPIRE search options are shown in the advanced search panel:

Some changes proposed to add also:

  • Made INSPIRE collapsible and hidden by default
  • Add "Either of the words" as first search parameter and put "Exact phrase", "All of the words" and "Without the words" in a collapsible panel, hidden by default.
  • Show INSPIRE terms without using an scrollbar

Additions:

The search panel for INSPIRE allows searching with this criteria fields:

  • Only INSPIRE metadata: Searches metadata associated with category=Inspire. This category should be added to Categories table.
  • Title (Metadata title)
  • Source type (Hierarchy level)
  • Service type (Online protocol)
  • Organisation (Group): To Check

Indexing

Search fieldLucene field
Title (Metadata title)title
Inspire annexinspireannex (new)
INSPIRE themeinspiretheme (new)
Source type (Hierarchy level)type
Service type (Online protocol)protocol
Organization (Group)group

Two new fields should be added to the indexing of iso19139 metadata to allow search for INSPIRE annex and INSPIRE theme fields (index-fields.xsl):

<xsl:for-each select="gmd:keyword/gco:CharacterString|gmd:keyword/gmd:PT_FreeText/gmd:textGroup/gmd:LocalisedCharacterString">
  <xsl:variable name="keywordLower" select="translate(string(.),$upper,$lower)"/>
  <Field name="keyword" string="{string(.)}" store="true" index="true" token="false"/>
  <Field name="subject" string="{string(.)}" store="true" index="true" token="false"/>

  <xsl:if test="string-length(.) &gt; 0">
    <xsl:if test="$keywordLower='coordinate reference systems' or $keywordLower='geographical grid systems'
 or $keywordLower='geographical names' or $keywordLower='administrative units' or $keywordLower='addresses' 
or $keywordLower='cadastral parcels' or $keywordLower='transport networks' or $keywordLower='hydrography' 
or $keywordLower='protected sites'">
      <Field name="inspiretheme" string="{string(.)}" store="true" index="true" token="true"/>
      <Field name="inspireannex" string="i" store="true" index="true" token="false"/>
    </xsl:if>
  
    <xsl:if test="$keywordLower='elevation' or $keywordLower='land cover' or $keywordLower='orthoimagery' or $keywordLower='geology'">
      <Field name="inspiretheme" string="{string(.)}" store="true" index="true" token="true"/>
      <Field name="inspireannex" string="ii" store="true" index="true" token="false"/>
    </xsl:if>
  
    <xsl:if test="$keywordLower='statistical units' or $keywordLower='buildings' 
or $keywordLower='soil' or $keywordLower='land use' or $keywordLower='human health and safety' 
or $keywordLower='utility and government services' or $keywordLower='environmental monitoring facilities' 
or $keywordLower='production and industrial facilities' 
or $keywordLower='agricultural and aquaculture facilities' 
or $keywordLower='population distribution - demography' 
or $keywordLower='area management/restriction/regulation zones and reporting units' 
or $keywordLower='natural risk zones' or $keywordLower='atmospheric conditions' 
or $keywordLower='meteorological geographical features' 
or $keywordLower='oceanographic geographical features' 
or $keywordLower='sea regions' or $keywordLower='bio-geographical regions' 
or $keywordLower='habitats and biotopes' or $keywordLower='species distribution' 
or $keywordLower='energy resources' or $keywordLower='mineral resources'">
      <Field name="inspiretheme" string="{string(.)}" store="true" index="true" token="true"/>
      <Field name="inspireannex" string="iii" store="true" index="true" token="false"/>
    </xsl:if>
  </xsl:if>
</xsl:for-each>

Backwards Compatibility Issues

none

Risks

Participants

  • Jose Garcia
Last modified 14 years ago Last modified on Mar 31, 2010, 3:11:34 AM

Attachments (2)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.