Difference between revisions of "NeXML OTU Decoration"

From Evolutionary Informatics Working Group
Jump to: navigation, search
Line 1: Line 1:
 
=Encoding Taxonomic Metadata in NeXML=
 
=Encoding Taxonomic Metadata in NeXML=
 +
 +
Working through how to put taxonomic metadata into Nexml files.
  
 
==Style As Suggested by NeXML Examples==
 
==Style As Suggested by NeXML Examples==

Revision as of 12:16, 10 March 2009

Encoding Taxonomic Metadata in NeXML

Working through how to put taxonomic metadata into Nexml files.

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"> <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"/> </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>