Class Taxon

java.lang.Object
org.opensextant.data.Taxon

public class Taxon extends Object
A Taxon is an entry in a taxonomy, which could be as simple as a flat word list or something with lots of structure. The name attribute represents the hierarchical path for the Taxon.
  • "terms" are the phrases you wish to find in free text. This is the common vernacular that implies this taxon or concept. e.g., "la piƱa" may be a term that we want to file under "fruits.tropical.pineapple"
  • "tags" are any metadata items associated with the terms or the taxon, e.g., source of terms, database identifier, language of terms, contributing staff
Author:
ubaldino
  • Field Details

    • catalog

      public String catalog
      Catalog, for example "fruit"
    • name

      public String name
      Node name: citrus.tropical
    • id

      public String id
      Nod OID: 1.2.3
    • rootid

      public String rootid
      Node root: citrus
    • termset

      public Set<String> termset
      Terms: "pineapple", "mango", ...
    • tagset

      public Set<String> tagset
    • isAcronym

      public boolean isAcronym
      Acronyms are assumed to be ALL UPPER CASE; granted this does not always apply. But this is used to inform post-processing if a match, such as 'abc' matched 'ABC' incorrectly. If the match is lower case, but the Taxon is Acronym, then you have a mismatch of case and semantics likley.
  • Constructor Details

    • Taxon

      public Taxon()
  • Method Details

    • setName

      public void setName(String n)
    • setId

      public void setId(String i)
    • setRootid

      public void setRootid(String i)
    • setTerms

      public void setTerms(String[] t)
    • hasTags

      public boolean hasTags()
    • addTags

      public void addTags(List<String> tlist)
    • addTag

      public void addTag(String t)
    • addTerm

      public void addTerm(String t)
    • addTerms

      public void addTerms(Collection<String> tlist)
    • toString

      public String toString()
      Overrides:
      toString in class Object