Edit this page on GitHub

Queries for Phenoscape UI demo'ed at SICB, Boston in Jan 2009

This page documents the queries implemented to retrieve data for the Anatomy Web Services module of the Phenoscape project, which was demonstrated at the SICB Workshop in Boston, MA in Jan 2009.

Query details

These queries correspond to the queries Q1~Q4 detailed in the Queries page. The anatomical feature being searched for is TAO:0001510 (Basihyal Cartilage)

Query 1 (Q1)

This query retrieves the phenotypes from the database that are composed from the anatomical feature as one of their components. These retrieved phenotypes are parsed to retrieve the qualities associated with the anatomical feature being searched for. These retrieved qualities are input to query Q2

SQL

SELECT \* FROM node_link_node_with_pred_and_source WHERE pred_uid LIKE '%PHENOSCAPE:exhibits%' AND object_uid LIKE '%TAO:0001510%';

Execution

Query 2 (Q2)

For each Quality that is retrieved by Q1, this query Q2 is executed to determine if it is an attribute or a value. A lookup table is populated to avoid redundant queries. This example is using PATO:0000467 (present in normal numbers in the organism)

SQL

SELECT \* FROM node_link_node_with_pred_and_source WHERE pred_uid LIKE '%oboInOwl:inSubset%' AND node_uid LIKE '%PATO:0000467%';

Execution

Query 3 (Q3)

If the results from Q2 show the Quality is a Value, then this query Q3 is executed to find out the Attribute

SQL

SELECT \* FROM node_link_node_with_pred_and_source WHERE node_uid LIKE '%PATO:0000467%' AND pred_uid LIKE '%OBO_REL:is_a%';

Execution

Notes on Queries Q2 and Q3

Query 4 (Q4)

The sub anatomical features for the given anatomical feature are retrieved in this query. Here, we search for the sub anatomical features of TAO:0001510 (basihyal cartilage). This query, if started with a TAO feature, will often retrieve a corresponding ZFA feature (if the DbXref link has been asserted). For every feature retrieved by the query, the process described above starts off again.

SQL

SELECT \* FROM node_link_node_with_pred_and_source WHERE object_uid LIKE '%TAO:0001510%' AND pred_uid LIKE '%OBO_REL:is_a%';

Execution