Skip to main content
. Author manuscript; available in PMC: 2015 Apr 1.
Published in final edited form as: Neuroinformatics. 2014 Apr;12(2):245–259. doi: 10.1007/s12021-013-9202-5

Algorithm 1: Faceted Search-Based Query Visualization

Data: User query q
Result: Facets F = {f1, …, fk}, relevant text T,
    Displayable models D = {d1, …, d)n}
1 Process query q into query set Q
2 for each query qjQ do
3   {Fj, Tj, Dj} → Process query qj using hierarchical
search
4   FFFj, TTTj, DDDj
5 end
6 if D ≠ ∅ then
7   Visualize models D
8 end
9 Display related text T, and Facets F
10 if User selects items t from facet list F then
11   for each item ti ∈ t do
12     if ti is predicate then
13       Make ti as specialized query of
      q : qtiq; ti and add to new query
      nqnqqti
14     else
15       Make ti as simple query and add to new
      query set, nqnqti
16     end
17   end
18   Set qnq
19   Go to 1
20 end