Difference between revisions of "SpeciesTMPlugin"

From Gcube Wiki
Jump to: navigation, search
(Example)
(Maven coordinates)
 
(37 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
||__TOC__
 
||__TOC__
 
|}
 
|}
Species TM Plugin is a plugin of the Tree Manager service that defines and maintains tree views of biodiversity data sources exposed by the Species Manager services.  
+
Species TM Plugin is a plugin of the [[Tree-Based_Access | Tree Based Access Facilities]] that defines and maintains tree views of biodiversity data sources exposed by the Species Manager services.  
 
Species TM Plugin provides an uniform model to access and storage data from SPD Service.
 
Species TM Plugin provides an uniform model to access and storage data from SPD Service.
 
Each Taxon generated via SPD Service is trasformed in a edge-labelled tree by Species TM Plugin.
 
Each Taxon generated via SPD Service is trasformed in a edge-labelled tree by Species TM Plugin.
Line 10: Line 10:
 
A tree generated by SpeciesTMPlugin has three subtrees:
 
A tree generated by SpeciesTMPlugin has three subtrees:
  
* DwC: each data from SPD Service is mapped to Darwin Core concepts. A detailed description of the Darwin Core fields is listed [[Checklist_DwC | here]];
+
* DwC: each data from SPD Service is mapped to Darwin Core concepts (a detailed description of the Darwin Core fields is listed [[Checklist_DwC | here]]):
 +
** [http://rs.tdwg.org/dwc/terms/Taxon  Taxon]: [http://rs.tdwg.org/dwc/terms/scientificNameID scientificNameID] | [http://rs.tdwg.org/dwc/terms/acceptedNameUsageID acceptedNameUsageID] | [http://rs.tdwg.org/dwc/terms/parentNameUsageID parentNameUsageID] | [http://rs.tdwg.org/dwc/terms/scientificName scientificName] | [http://rs.tdwg.org/dwc/terms/nameAccordingTo nameAccordingTo] | [http://rs.tdwg.org/dwc/terms/kingdom kingdom] | [http://rs.tdwg.org/dwc/terms/phylum phylum] | [http://rs.tdwg.org/dwc/terms/class class] | [http://rs.tdwg.org/dwc/terms/order order] | [http://rs.tdwg.org/dwc/terms/family family] | [http://rs.tdwg.org/dwc/terms/genus genus] | [http://rs.tdwg.org/dwc/terms/subgenus subgenus] | [http://rs.tdwg.org/dwc/terms/specificEpithet specificEpithet] | [http://rs.tdwg.org/dwc/terms/infraspecificEpithet infraspecificEpithet] | [http://rs.tdwg.org/dwc/terms/taxonRank taxonRank] | [http://rs.tdwg.org/dwc/terms/verbatimTaxonRank verbatimTaxonRank] | [http://rs.tdwg.org/dwc/terms/scientificNameAuthorship scientificNameAuthorship] | [http://rs.tdwg.org/dwc/terms/taxonomicStatus taxonomicStatus] | [http://rs.tdwg.org/dwc/terms/taxonRemarks taxonRemarks] | [http://purl.org/dc/terms/modified modified] | [http://purl.org/dc/terms/rightsHolder rightsHolder]
 +
** [http://rs.gbif.org/terms/1.0/VernacularName VernacularNames]: [http://rs.tdwg.org/dwc/terms/vernacularName vernacularName] | [http://purl.org/dc/terms/language language] | [http://rs.tdwg.org/dwc/terms/locality locality]
 
* Properties: additional data elements from SPD Service are stored in this subtree.
 
* Properties: additional data elements from SPD Service are stored in this subtree.
 
* Provenance: information about provenance (wasDerivedFrom, wasGeneratedBy).
 
* Provenance: information about provenance (wasDerivedFrom, wasGeneratedBy).
Line 18: Line 20:
 
<source lang="xml">
 
<source lang="xml">
  
 +
<?xml version="1.0" encoding="UTF-8"?>
 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" >
 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" >
          <!-- XML Schema Generated from XML Document on Tue Apr 09 2013 14:26:58 GMT+0200 (CEST) -->
 
          <!-- with XmlGrid.net Free Online Service http://xmlgrid.net -->
 
 
       <xs:element name="t:root" >
 
       <xs:element name="t:root" >
 
               <xs:complexType>
 
               <xs:complexType>
 
                     <xs:sequence>
 
                     <xs:sequence>
                             <xs:element name="provenance" >
+
                             <xs:element name="dwc" >
 
                                   <xs:complexType>
 
                                   <xs:complexType>
 
                                           <xs:sequence>
 
                                           <xs:sequence>
                                                 <xs:element name="wasGeneratedBy" type="xs:string" >
+
                                                 <xs:element name="taxonRemarks" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="wasDerivedFrom" type="xs:string" >
+
                                                 <xs:element name="scientificName" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                            </xs:sequence>
+
                                                 <xs:element name="verbatimTaxonRank" type="xs:string" >
                                          <xs:attribute name="t:id" type="xs:int" />
+
                                      </xs:complexType>
+
                              </xs:element>
+
                            <xs:element name="DwC" >
+
                                  <xs:complexType>
+
                                          <xs:sequence>
+
                                                 <xs:element name="taxonRemarks" type="xs:string" >
+
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="scientificName" type="xs:string" >
+
                                                 <xs:element name="class" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="class" type="xs:string" >
+
                                                 <xs:element name="scientificNameAuthorship" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="scientificNameAuthorship" type="xs:string" >
+
                                                 <xs:element name="nameAccordingTo" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="nameAccordingTo" type="xs:string" >
+
                                                 <xs:element name="genus" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
Line 74: Line 68:
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="genus" type="xs:string" >
+
                                                 <xs:element name="infraspecificEpithet" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="modified" >
+
                                                 <xs:element name="modified" type="xs:date" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="acceptedNameUsageID" >
+
                                                 <xs:element name="acceptedNameUsageID" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
Line 94: Line 88:
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="kingdom" type="xs:string" >
+
                                                 <xs:element name="vernacularNames" maxOccurs="unbounded" minOccurs="0">
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 +
                                                              <xs:sequence>
 +
                                                                      <xs:element name="language" type="xs:string" >
 +
                                                                            <xs:complexType>
 +
                                                                                    <xs:attribute name="t:id" type="xs:int" />
 +
                                                                                </xs:complexType>
 +
                                                                        </xs:element>
 +
                                                                      <xs:element name="locality" type="xs:string" >
 +
                                                                            <xs:complexType>
 +
                                                                                    <xs:attribute name="t:id" type="xs:int" />
 +
                                                                                </xs:complexType>
 +
                                                                        </xs:element>
 +
                                                                      <xs:element name="vernacularName" type="xs:string" >
 +
                                                                            <xs:complexType>
 +
                                                                                    <xs:attribute name="t:id" type="xs:int" />
 +
                                                                                </xs:complexType>
 +
                                                                        </xs:element>
 +
                                                                  </xs:sequence>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="vernacularNames" >
+
                                                 <xs:element name="order" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="order" type="xs:string" >
+
                                                 <xs:element name="kingdom" type="xs:string" >
 +
                                                        <xs:complexType>
 +
                                                              <xs:attribute name="t:id" type="xs:int" />
 +
                                                          </xs:complexType>
 +
                                                    </xs:element>
 +
                                                <xs:element name="family" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
Line 114: Line 130:
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="family" type="xs:string" >
+
                                                 <xs:element name="rightsHolder" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                 <xs:element name="bibliographicCitation" type="xs:string" >
+
                                                 <xs:element name="subgenus" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
Line 125: Line 141:
 
                                                     </xs:element>
 
                                                     </xs:element>
 
                                                 <xs:element name="scientificNameID" type="xs:string" >
 
                                                 <xs:element name="scientificNameID" type="xs:string" >
 +
                                                        <xs:complexType>
 +
                                                              <xs:attribute name="t:id" type="xs:int" />
 +
                                                          </xs:complexType>
 +
                                                    </xs:element>
 +
                                                <xs:element name="specificEpithet" type="xs:string" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
Line 134: Line 155:
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
 
                                                     </xs:element>
 
                                                     </xs:element>
                                                <xs:element name="specificEpithet" type="xs:string" >
+
                                            </xs:sequence>
 +
                                          <xs:attribute name="t:id" type="xs:int" />
 +
                                      </xs:complexType>
 +
                              </xs:element>
 +
                            <xs:element name="properties" >
 +
                                  <xs:complexType>
 +
                                          <xs:sequence>
 +
                                                <xs:element name="property" maxOccurs="unbounded" >
 
                                                         <xs:complexType>
 
                                                         <xs:complexType>
 +
                                                              <xs:sequence>
 +
                                                                      <xs:element name="key" type="xs:string" >
 +
                                                                            <xs:complexType>
 +
                                                                                    <xs:attribute name="t:id" type="xs:int" />
 +
                                                                                </xs:complexType>
 +
                                                                        </xs:element>
 +
                                                                      <xs:element name="value" type="xs:string" >
 +
                                                                            <xs:complexType>
 +
                                                                                    <xs:attribute name="t:id" type="xs:int" />
 +
                                                                                </xs:complexType>
 +
                                                                        </xs:element>
 +
                                                                  </xs:sequence>
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                               <xs:attribute name="t:id" type="xs:int" />
 
                                                           </xs:complexType>
 
                                                           </xs:complexType>
Line 143: Line 183:
 
                                       </xs:complexType>
 
                                       </xs:complexType>
 
                               </xs:element>
 
                               </xs:element>
                             <xs:element name="Properties" >
+
                             <xs:element name="provenance" >
 
                                   <xs:complexType>
 
                                   <xs:complexType>
 +
                                          <xs:sequence>
 +
                                                <xs:element name="wasDerivedFrom" type="xs:string" >
 +
                                                        <xs:complexType>
 +
                                                              <xs:attribute name="t:id" type="xs:int" />
 +
                                                          </xs:complexType>
 +
                                                    </xs:element>
 +
                                                <xs:element name="wasGeneratedBy" type="xs:string" >
 +
                                                        <xs:complexType>
 +
                                                              <xs:attribute name="t:id" type="xs:int" />
 +
                                                          </xs:complexType>
 +
                                                    </xs:element>
 +
                                            </xs:sequence>
 
                                           <xs:attribute name="t:id" type="xs:int" />
 
                                           <xs:attribute name="t:id" type="xs:int" />
 
                                       </xs:complexType>
 
                                       </xs:complexType>
Line 157: Line 209:
 
           </xs:element>
 
           </xs:element>
 
   </xs:schema>
 
   </xs:schema>
 
  
 
</source>
 
</source>
Line 166: Line 217:
  
 
<source lang="xml">
 
<source lang="xml">
 
  
 
<?xml version="1.0" ?>
 
<?xml version="1.0" ?>
<t:root xmlns:t="http://gcube-system.org/namespaces/data/trees" SpeciesServiceId="ITIS:711067" storeId="17540" t:id="ITIS:711067" t:source="d2e652b9-07a1-495a-92ee-0a22dbe97f8b">
 
  
<provenance t:id="17562">
+
<t:root xmlns:t="http://gcube-system.org/namespaces/data/trees"
<wasGeneratedBy t:id="17564">This information object has been generated via the Species Product Discovery service on 04-08-2013 by interfacing with ITIS, the Integrated Taxonomic Information System (http://www.itis.gov/)</wasGeneratedBy>
+
SpeciesServiceId="ITIS:159903" storeId="1" t:id="ITIS:159903"
<wasDerivedFrom t:id="17563">Accessed through: the Integrated Taxonomic Information System (ITIS) at http://www.itis.gov on 04-08-2013</wasDerivedFrom>
+
t:source="6153d4d5-f872-46f2-9ab1-2a056042030e">
</provenance>
+
  
<DwC t:id="17542">
+
<dwc t:id="12">
<taxonRemarks t:id="17546">valid</taxonRemarks>
+
<taxonRemarks t:id="16">valid</taxonRemarks>
<scientificName t:id="17551">Murrayon pullari  </scientificName>
+
<scientificName t:id="21">Carcharodon carcharias</scientificName>
<class t:id="17556">Eutardigrada</class>
+
<verbatimTaxonRank t:id="33"></verbatimTaxonRank>
<scientificNameAuthorship t:id="17543">(Murray, 1907)</scientificNameAuthorship>
+
<class t:id="26">Chondrichthyes</class>
<nameAccordingTo t:id="17552">Accessed through: the Integrated Taxonomic Information System (ITIS) at http://www.itis.gov on 04-08-2013</nameAccordingTo>
+
<scientificNameAuthorship t:id="13">(Linnaeus,1758)</scientificNameAuthorship>
<taxonomicStatus t:id="17545">VALID</taxonomicStatus>
+
<nameAccordingTo t:id="22">Accessed through: the Integrated
<genus t:id="17559">Murrayon  </genus>
+
Taxonomic Information System (ITIS) at http://www.itis.gov on
<modified t:id="17549"></modified>
+
04-29-2013</nameAccordingTo>
<acceptedNameUsageID t:id="17544"></acceptedNameUsageID>
+
<genus t:id="29">Carcharodon</genus>
<phylum t:id="17555">Tardigrada</phylum>
+
<taxonomicStatus t:id="15">VALID</taxonomicStatus>
<kingdom t:id="17554">Animalia</kingdom>
+
<infraspecificEpithet t:id="32"></infraspecificEpithet>
<vernacularNames t:id="17561"></vernacularNames>
+
<modified t:id="19"></modified>
<order t:id="17557">Parachela</order>
+
<acceptedNameUsageID t:id="14"></acceptedNameUsageID>
<parentNameUsageID t:id="17553">ITIS:710252</parentNameUsageID>
+
<phylum t:id="25">Chordata</phylum>
<family t:id="17558">Macrobiotidae  </family>
+
<bibliographicCitation t:id="17547">This information object has been generated via the Species Product Discovery service on 04-08-2013 by interfacing with ITIS, the Integrated Taxonomic Information System (http://www.itis.gov/)</bibliographicCitation>
+
<scientificNameID t:id="17548">urn:lsid:itis.gov:itis_tsn:711067</scientificNameID>
+
<taxonRank t:id="17550">Species</taxonRank>
+
<specificEpithet t:id="17560">pullari</specificEpithet>
+
</DwC>
+
  
<Properties t:id="17541"></Properties>
+
<vernacularNames t:id="34">
 +
<language t:id="35">English</language>
 +
<locality t:id="36"></locality>
 +
<vernacularName t:id="37">great white shark</vernacularName>
 +
</vernacularNames>
 +
 
 +
<vernacularNames t:id="38">
 +
<language t:id="39">Spanish</language>
 +
<locality t:id="40"></locality>
 +
<vernacularName t:id="41">jaquetón de ley</vernacularName>
 +
</vernacularNames>
 +
 
 +
<vernacularNames t:id="42">
 +
<language t:id="43">French</language>
 +
<locality t:id="44"></locality>
 +
<vernacularName t:id="45">requin blanc</vernacularName>
 +
</vernacularNames>
 +
 
 +
<vernacularNames t:id="46">
 +
<language t:id="47">Spanish</language>
 +
<locality t:id="48"></locality>
 +
<vernacularName t:id="49">tiburón blanco</vernacularName>
 +
</vernacularNames>
 +
 
 +
<vernacularNames t:id="50">
 +
<language t:id="51">English</language>
 +
<locality t:id="52"></locality>
 +
<vernacularName t:id="53">white shark</vernacularName>
 +
</vernacularNames>
 +
 
 +
<order t:id="27">Lamniformes</order>
 +
<kingdom t:id="24">Animalia</kingdom>
 +
<family t:id="28">Lamnidae</family>
 +
<parentNameUsageID t:id="23">ITIS:159902</parentNameUsageID>
 +
<rightsHolder t:id="17">This information
 +
object has been generated via the Species Product Discovery service
 +
on 04-29-2013 by interfacing with ITIS, the Integrated Taxonomic
 +
Information System (http://www.itis.gov/)</rightsHolder>
 +
<subgenus t:id="30"></subgenus>
 +
<scientificNameID t:id="18">urn:lsid:itis.gov:itis_tsn:159903</scientificNameID>
 +
<specificEpithet t:id="31">carcharias</specificEpithet>
 +
<taxonRank t:id="20">Species</taxonRank>
 +
</dwc>
 +
 
 +
<properties t:id="2">
 +
<property t:id="3">
 +
<key t:id="4">Source</key>
 +
<value t:id="5">NODC Taxonomic Code, database (version 8.0).Acquired: 1996-07-29.</value>
 +
</property>
 +
<property t:id="6">
 +
<key t:id="7">Source</key>
 +
<value t:id="8">F. A. O., database (version 1). Acquired:1996-07-29.</value>
 +
</property>
 +
<property t:id="9">
 +
<key t:id="10">Source</key>
 +
<value t:id="11">Catalog of Fishes, 17-Mar-2003, website (version
 +
13-Mar-03). Acquired: 2003-03-17.</value>
 +
</property>
 +
</properties>
 +
 
 +
<provenance t:id="54">
 +
<wasDerivedFrom t:id="55">Accessed through: the Integrated
 +
Taxonomic Information System (ITIS) at http://www.itis.gov on
 +
04-29-2013</wasDerivedFrom>
 +
<wasGeneratedBy t:id="56">This information object has been
 +
generated via the Species Product Discovery service on 04-29-2013 by
 +
interfacing with ITIS, the Integrated Taxonomic Information System
 +
(http://www.itis.gov/)</wasGeneratedBy>
 +
</provenance>
  
 
</t:root>
 
</t:root>
 +
  
  
Line 232: Line 343:
 
<groupId>org.gcube.data.access</groupId>
 
<groupId>org.gcube.data.access</groupId>
 
<artifactId>species-tree-plugin</artifactId>
 
<artifactId>species-tree-plugin</artifactId>
<version>1.1.0</version>
+
<version>[1.1.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
  
 
</source>
 
</source>
Line 244: Line 355:
 
<groupId>org.gcube.data.access</groupId>
 
<groupId>org.gcube.data.access</groupId>
 
<artifactId>species-tree-requests</artifactId>
 
<artifactId>species-tree-requests</artifactId>
<version>1.0.0-SNAPSHOT</version>
+
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
  
 
</source>
 
</source>

Latest revision as of 19:09, 8 November 2013

Species TM Plugin is a plugin of the Tree Based Access Facilities that defines and maintains tree views of biodiversity data sources exposed by the Species Manager services. Species TM Plugin provides an uniform model to access and storage data from SPD Service. Each Taxon generated via SPD Service is trasformed in a edge-labelled tree by Species TM Plugin.

Tree model

A tree generated by SpeciesTMPlugin has three subtrees:

Generic model

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" >
       <xs:element name="t:root" >
              <xs:complexType>
                     <xs:sequence>
                            <xs:element name="dwc" >
                                   <xs:complexType>
                                          <xs:sequence>
                                                 <xs:element name="taxonRemarks" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="scientificName" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="verbatimTaxonRank" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="class" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="scientificNameAuthorship" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="nameAccordingTo" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="genus" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="taxonomicStatus" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="infraspecificEpithet" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="modified" type="xs:date" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="acceptedNameUsageID" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="phylum" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="vernacularNames" maxOccurs="unbounded" minOccurs="0">
                                                        <xs:complexType>
                                                               <xs:sequence>
                                                                      <xs:element name="language" type="xs:string" >
                                                                             <xs:complexType>
                                                                                    <xs:attribute name="t:id" type="xs:int" />
                                                                                </xs:complexType>
                                                                         </xs:element>
                                                                      <xs:element name="locality" type="xs:string" >
                                                                             <xs:complexType>
                                                                                    <xs:attribute name="t:id" type="xs:int" />
                                                                                </xs:complexType>
                                                                         </xs:element>
                                                                      <xs:element name="vernacularName" type="xs:string" >
                                                                             <xs:complexType>
                                                                                    <xs:attribute name="t:id" type="xs:int" />
                                                                                </xs:complexType>
                                                                         </xs:element>
                                                                  </xs:sequence>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="order" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="kingdom" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="family" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="parentNameUsageID" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="rightsHolder" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="subgenus" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="scientificNameID" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="specificEpithet" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="taxonRank" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                             </xs:sequence>
                                          <xs:attribute name="t:id" type="xs:int" />
                                      </xs:complexType>
                               </xs:element>
                            <xs:element name="properties" >
                                   <xs:complexType>
                                          <xs:sequence>
                                                 <xs:element name="property" maxOccurs="unbounded" >
                                                        <xs:complexType>
                                                               <xs:sequence>
                                                                      <xs:element name="key" type="xs:string" >
                                                                             <xs:complexType>
                                                                                    <xs:attribute name="t:id" type="xs:int" />
                                                                                </xs:complexType>
                                                                         </xs:element>
                                                                      <xs:element name="value" type="xs:string" >
                                                                             <xs:complexType>
                                                                                    <xs:attribute name="t:id" type="xs:int" />
                                                                                </xs:complexType>
                                                                         </xs:element>
                                                                  </xs:sequence>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                             </xs:sequence>
                                          <xs:attribute name="t:id" type="xs:int" />
                                      </xs:complexType>
                               </xs:element>
                            <xs:element name="provenance" >
                                   <xs:complexType>
                                          <xs:sequence>
                                                 <xs:element name="wasDerivedFrom" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                                 <xs:element name="wasGeneratedBy" type="xs:string" >
                                                        <xs:complexType>
                                                               <xs:attribute name="t:id" type="xs:int" />
                                                           </xs:complexType>
                                                    </xs:element>
                                             </xs:sequence>
                                          <xs:attribute name="t:id" type="xs:int" />
                                      </xs:complexType>
                               </xs:element>
                        </xs:sequence>
                     <xs:attribute name="xmlns:t" type="xs:string" />
                     <xs:attribute name="SpeciesServiceId" type="xs:string" />
                     <xs:attribute name="storeId" type="xs:int" />
                     <xs:attribute name="t:id" type="xs:string" />
                     <xs:attribute name="t:source" type="xs:string" />
                 </xs:complexType>
          </xs:element>
   </xs:schema>

Example

A tree generated by Species TM Plugin looks like this:

<?xml version="1.0" ?>
 
<t:root xmlns:t="http://gcube-system.org/namespaces/data/trees"
	SpeciesServiceId="ITIS:159903" storeId="1" t:id="ITIS:159903"
	t:source="6153d4d5-f872-46f2-9ab1-2a056042030e">
 
	<dwc t:id="12">
		<taxonRemarks t:id="16">valid</taxonRemarks>
		<scientificName t:id="21">Carcharodon carcharias</scientificName>
		<verbatimTaxonRank t:id="33"></verbatimTaxonRank>
		<class t:id="26">Chondrichthyes</class>
		<scientificNameAuthorship t:id="13">(Linnaeus,1758)</scientificNameAuthorship>
		<nameAccordingTo t:id="22">Accessed through: the Integrated
			Taxonomic Information System (ITIS) at http://www.itis.gov on
			04-29-2013</nameAccordingTo>
		<genus t:id="29">Carcharodon</genus>
		<taxonomicStatus t:id="15">VALID</taxonomicStatus>
		<infraspecificEpithet t:id="32"></infraspecificEpithet>
		<modified t:id="19"></modified>
		<acceptedNameUsageID t:id="14"></acceptedNameUsageID>
		<phylum t:id="25">Chordata</phylum>
 
		<vernacularNames t:id="34">
			<language t:id="35">English</language>
			<locality t:id="36"></locality>
			<vernacularName t:id="37">great white shark</vernacularName>
		</vernacularNames>
 
		<vernacularNames t:id="38">
			<language t:id="39">Spanish</language>
			<locality t:id="40"></locality>
			<vernacularName t:id="41">jaquetón de ley</vernacularName>
		</vernacularNames>
 
		<vernacularNames t:id="42">
			<language t:id="43">French</language>
			<locality t:id="44"></locality>
			<vernacularName t:id="45">requin blanc</vernacularName>
		</vernacularNames>
 
		<vernacularNames t:id="46">
			<language t:id="47">Spanish</language>
			<locality t:id="48"></locality>
			<vernacularName t:id="49">tiburón blanco</vernacularName>
		</vernacularNames>
 
		<vernacularNames t:id="50">
			<language t:id="51">English</language>
			<locality t:id="52"></locality>
			<vernacularName t:id="53">white shark</vernacularName>
		</vernacularNames>
 
		<order t:id="27">Lamniformes</order>
		<kingdom t:id="24">Animalia</kingdom>
		<family t:id="28">Lamnidae</family>
		<parentNameUsageID t:id="23">ITIS:159902</parentNameUsageID>
		<rightsHolder t:id="17">This information
			object has been generated via the Species Product Discovery service
			on 04-29-2013 by interfacing with ITIS, the Integrated Taxonomic
			Information System (http://www.itis.gov/)</rightsHolder>
		<subgenus t:id="30"></subgenus>
		<scientificNameID t:id="18">urn:lsid:itis.gov:itis_tsn:159903</scientificNameID>
		<specificEpithet t:id="31">carcharias</specificEpithet>
		<taxonRank t:id="20">Species</taxonRank>
	</dwc>
 
	<properties t:id="2">
		<property t:id="3">
			<key t:id="4">Source</key>
			<value t:id="5">NODC Taxonomic Code, database (version 8.0).Acquired: 1996-07-29.</value>
		</property>
		<property t:id="6">
			<key t:id="7">Source</key>
			<value t:id="8">F. A. O., database (version 1). Acquired:1996-07-29.</value>
		</property>
		<property t:id="9">
			<key t:id="10">Source</key>
			<value t:id="11">Catalog of Fishes, 17-Mar-2003, website (version
				13-Mar-03). Acquired: 2003-03-17.</value>
		</property>
	</properties>
 
	<provenance t:id="54">
		<wasDerivedFrom t:id="55">Accessed through: the Integrated
			Taxonomic Information System (ITIS) at http://www.itis.gov on
			04-29-2013</wasDerivedFrom>
		<wasGeneratedBy t:id="56">This information object has been
			generated via the Species Product Discovery service on 04-29-2013 by
			interfacing with ITIS, the Integrated Taxonomic Information System
			(http://www.itis.gov/)</wasGeneratedBy>
	</provenance>
 
</t:root>

Bind request

An Activation Record allows the creation of collections. Using an Activation Record the user selects scientific names and data sources to create the collection.

A request has this form:

        List<ScientificName> as ScientificName in List<DataSource> return Taxon

If List<DataSource> is empty, Species TM Plugin will retrieve data from all Data Sources.


Examples:

        'Carcharodon carcharias' , 'Rosa' in ITIS, CatalogueOfLife return Taxon
        'Carcharodon carcharias' , 'Rosa' return Taxon
        'Carcharodon carcharias' return Taxon

Maven coordinates

The Maven coordinates of species-tree-plugin of its development versions are:

<groupId>org.gcube.data.access</groupId>
<artifactId>species-tree-plugin</artifactId>
<version>[1.1.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>

The request classes are separated from the species-tree-plugin, in a component upon which plugin depends. This component is species-tree-requests.

The Maven coordinates of species-tree-requests of its development versions are:

<groupId>org.gcube.data.access</groupId>
<artifactId>species-tree-requests</artifactId>
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>