Skip to main content

Table 2 Seahawk data rule format: XPath expressions. XPath-based rule for creating a basic MOBY-S Gene Ontology record from a DOM data source, in this case an AGAVE XML document. The DOM context node for the XPath evaluation is determined by the application.

From: Seahawk: moving beyond HTML in Web-based bioinformatics analysis

<prefix value="agave">http://www.bioxml.info/dtd/agave.dtd</prefix>
<!-- Build a MOBY Object in the Gene Ontology namespace-->
<object>
   <!-- Find gene elements w/GO classification children-->
   <xpath>self::agave:gene//agave:classification [@system='GO']</xpath>
   <namespace>
      <!-- Find the ID attribute of the above xpath result-->
      <ns value="GO">./@id</ns>
   </namespace>
</object>