NeXML OTU Decoration

From Evolutionary Informatics Working Group
Jump to: navigation, search

Working through how to encode taxonomic metadata in NeXML files for the Taxonomic Intelligence Subgroup.

Style As Suggested by NeXML Examples

This uses the CDAO predicate "has_Taxonomy_Reference" and the objects are OBO OWLs for TTO and NCBI:

<xml> <otus id="tax1"> <otu id="t1"> <dict id="mydict" xmlns:cdao="http://evolutionaryontology.org/cdao/1.0/cdao.owl"> <any id="any1"> <cdao:TU rdf:id="t1" label="Ictalurus punctatus"/> <cdao:has_Taxonomy_Reference rdf:resource="http://purl.org/obo/owl/TTO#TTO_1054206"/> <cdao:has_Taxonomy_Reference rdf:resource="http://purl.org/obo/owl/NCBITaxon#NCBITaxon_7998"/> </cdao:TU> </any> <integer id="count">2</integer> </dict> </otu> <otu id="t2" label="Homo sapiens"/> </otus> </xml>

Alternative With Arbitrary Syntax

The problem with this one is that it is an arbitrary implementation that is not part of any standard.

<xml> <otus id="tax1">

    <otu id="t1">
         <dict id="mydict">
               <any id="taxonomic_refrerences">
                     <Object namespace="NCBI" ID="8782"/>
                     <Object resolver="http://bob.org/">
               </any>
          </dict>
    </otu>
    <otu id="t2"/>

</otus> </xml>

Another Alternative

<xml> <otus id="tax1">

    <otu id="t1">
         <dict id="taxonRefDict">
               <uri id="resolver">http://bob.org/</uri>
               <string id="namespace">NCBI</string>
               <string id="id">8782</string>
          </dict>
     </otu>
     <otu id="t2"/>

</otus> </xml>

<perl> my $taxonRefDict = {

  "resolver" => "http://bob.org/",
  "namespace" => "NCBI",
  "id" => "8782"

}; </perl>