Menu

Generating_cluster_lists

David Osumi-Sutherland

Generating cluster lists

Example page: http://www.virtualflybrain.org/do/cluster_list.html?action=cluster_found&id=FBbt:00007401

Generated by: clusterList.jsp (sourceforge.net)

Triggering query: From termMenuNeuropil.jsp (sourceforge.net)

:::jsp
/do/cluster_list.html?action=cluster_found&id=${param.fbbtId}

This passes the ID of the neuropil being displayed to a DL query, cluster_found, that lives in WebQueryUtils.java and has the form:

('exemplar_of' some 'cluster') and ('neuron' that 'overlaps' some X))

The IDs returned by this are used to generate a list of OntBeanIndividuals.

Iteration

The JSP page iterates over the list of beans provided:

:::jsp
<c:forEach items="${ontBeanList}" var="ontBean" varStatus="status">

During each iteration: the ontBean is used to roll a related thirdPartyBean bean with paths etc from paths etc from the VFB DB:

:::jsp
set var="tpb" value="${ontBean.thirdPartyBean}.
~~~~~~~~~~~

### Content of table by column:

__Column 1__ (cluster) thumb and hyperlink are specified as:

:::jsp
http://flybrain.mrc-lmb.cam.ac.uk/vfb/fc/clusterv/$version/<${ontBean.name}>/
http://flybrain.mrc-lmb.cam.ac.uk/vfb/fc/clusterv/$version/<${ontBean.name}>/thumb_0.333.png

_Where $version is the current clustering version number being used on the site.

_Note the hardwiring of paths in here._

__Column 2__ Exemplar name and source name + link
Exemplar name is specified by $\{ontBean.name\}.  The source name and link are generated with:

:::jsp
( ${tpb.sourceName}

__Column 3__:  Hyperlinked exemplar thumb + tooltip is generated with 

~~~~~~~~~~~
:::jsp
<a href="${tpb.baseUrl}${tpb.remoteId}"title="View ${tpb.sourceName} entry">
<img src="${tpb.thumbUrl}" height="100" /></a>

Column 4

:::jsp
/do/individual_list.html?action=neuron_found&id=${tpb.fbId}&region=${ontBean.name}

This runs the OWL query:
~~~~~~~~~~~
'member_of' some ('has_exemplar' value <neuron name>)
~~~~~~~~~~~~~


Related

Wiki: page_descriptions

MongoDB Logo MongoDB