Ecoinformatics Redmine: Issueshttps://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362005-11-17T23:40:17ZEcoinformatics Redmine
Redmine Kepler - Bug #2281 (Resolved): Duplicated and incorrect search results in actor searchinghttps://projects.ecoinformatics.org/ecoinfo/issues/22812005-11-17T23:40:17Zjianting zhangjzhang@lternet.edu
<p>The three actors "ENM PCP","ESRI Shapefile Displayer" and "GML Displayer" are <br />desinged to be GISOutputActor in the annotation file and correspon to "Outputs-<br />GIS" in the actor ontology. However, when search "GIS" in the actor search <br />panel, they appear both under "Inputs-External-GIS" and "Outputs-GIS". They <br />are not annotated to be the input actor by any means and the search results <br />are incorrect.</p>
<p>The problem happens because "GIS" is used in the two paths of the ontology <br />tree and the matching is based on the name of the path component. One simple <br />solution is to require unique names of ontlogy labels (which are used as the <br />naems of path components in the trees and ComposityEntity in the actor <br />library), but this may be not desirable.</p>
<p>The problem was covered before because there are no GIS actors that are <br />annotated as sole ouput actor (all the GIS output actors are also annotated as <br />input actors) before the check-in of the three actors.</p>
<p>Searching the current actor library using "GIS", the first search result <br />belongs to "Inputs-External-GIS" and ther are 6 actors (3 in only and 3 <br />in/out) belong to it. When the first actor belongs to "Outputs-GIS" (3 out <br />only and 3 in/out), the ResultTreeBuilder.java set the container of "Outputs-<br />GIS" to "Inputs-External". After merging, there are 9 actors under "Inputs-<br />External-GIS" (3 in only, 3 in/out and 3 out only) as shown in the search <br />result.</p>