Class: Export::Dwca::GbifProfile::SpeciesDistribution

Inherits:
Object
  • Object
show all
Defined in:
lib/export/dwca/gbif_profile/species_distribution.rb

Constant Summary collapse

NAMESPACES =
{
  :taxonID => 'http://rs.tdwg.org/dwc/terms/taxonID',
  :locality => 'http://rs.tdwg.org/dwc/terms/locality',
  :locationID => 'http://rs.tdwg.org/dwc/terms/locationID',
  :countryCode => 'http://rs.tdwg.org/dwc/terms/countryCode',
  :lifeStage => 'http://rs.tdwg.org/dwc/terms/lifeStage',
  :occurrenceStatus => 'http://rs.tdwg.org/dwc/terms/occurrenceStatus',
  :threatStatus => 'http://rs.gbif.org/terms/1.0/threatStatus',
  :establishmentMeans => 'http://rs.tdwg.org/dwc/terms/establishmentMeans',
  :appendixCITES => 'http://rs.gbif.org/terms/1.0/appendixCITES',
  :eventDate => 'http://rs.tdwg.org/dwc/terms/eventDate',
  :startDayOfYear => 'http://rs.tdwg.org/dwc/terms/startDayOfYear',
  :endDayOfYear => 'http://rs.tdwg.org/dwc/terms/endDayOfYear',
  :source => 'http://purl.org/dc/terms/source',
  :occurrenceRemarks => 'http://rs.tdwg.org/dwc/terms/occurrenceRemarks'
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#appendixCITESString

appendixCITES (http://rs.gbif.org/terms/1.0/appendixCITES)

The CITES (Convention on International Trade in Endangered Species of Wild Fauna and Flora) Appendix number the taxa is listed. It is possible to have different appendix numbers for different areas, but "global" as an area is also valid if its the same worldwide

Vocabulary: http://rs.gbif.org/vocabulary/un/cites_appendix.xml

Example: "II"

Returns:

  • (String)


123
124
125
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 123

def appendixCITES
  @appendixCITES
end

#countryCodeString

countryCode (http://rs.tdwg.org/dwc/terms/countryCode)

ISO3166 alpha 2 (3 is permissable) country codes the area belongs to or as an alternative for a lcoationID if the area is a country. For multiple countries separate values with a comma "," Use country name if necessary.

Example: "AR" "US;CA;MX"

Returns:

  • (String)


62
63
64
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 62

def countryCode
  @countryCode
end

#endDayOfYearString

endDayOfYear (http://rs.tdwg.org/dwc/terms/endDayOfYear)

Seasonal temporal subcontext within the eventDate context. The latest ordinal day of the year on which the distribution record is valid

Example: "120"

Returns:

  • (String)


154
155
156
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 154

def endDayOfYear
  @endDayOfYear
end

#establishmentMeansString

establishmentMeans (http://rs.tdwg.org/dwc/terms/establishmentMeans)

Term describing whether the organism occurs natively, is introduced or cultivated.

Vocabulary: http://rs.gbif.org/vocabulary/gbif/establishment_means.xml

Example: "introduced"

Returns:

  • (String)


110
111
112
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 110

def establishmentMeans
  @establishmentMeans
end

#eventDateString

eventDate (http://rs.tdwg.org/dwc/terms/eventDate)

Relevant temporal context for the distribution record. Preferably given as a year range or single year on which the distribution record is valid. For the same area and taxon there could therefore be several records with different temporal context, e.g. in 5 year intervals for invasive species.

Example: "1930"; "1939-1945"

Returns:

  • (String)


134
135
136
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 134

def eventDate
  @eventDate
end

#lifeStageString

lifeStage (http://rs.tdwg.org/dwc/terms/lifeStage)

The distribution information pertains solely to a specific life stage of the taxon. See the Life Stage vocabulary at http://rs.gbif.org/vocabulary/gbif/life_stage.xml for recommended values.

Vocabulary: http://rs.gbif.org/vocabulary/gbif/life_stage.xml

Example: "adult"

Returns:

  • (String)


75
76
77
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 75

def lifeStage
  @lifeStage
end

#localityString

locality (http://rs.tdwg.org/dwc/terms/locality)

The verbatim name of the area this distributon record is about.

Example: "Patagonia"

Returns:

  • (String)


39
40
41
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 39

def locality
  @locality
end

#locationIDString

locationID (http://rs.tdwg.org/dwc/terms/locationID)

A code for the named area this distributon record is about. See http://en.wikipedia.org/wiki/ISO_3166-2 for state codes within a country, otherwise use a prefix for each code to indicate the source of the code. See http://rs.gbif.org/areas/ for GBIF recommended area vocabularies

Example: "TDWG:AGS-TF; ISO3166:AR; WOEID:564721"

Returns:

  • (String)


51
52
53
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 51

def locationID
  @locationID
end

#occurrenceRemarksString

occurrenceRemarks (http://rs.tdwg.org/dwc/terms/occurrenceRemarks)

Comments or notes about the distribution

Example: "Excluded because of misidentification"

Returns:

  • (String)


173
174
175
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 173

def occurrenceRemarks
  @occurrenceRemarks
end

#occurrenceStatusString

occurrenceStatus (http://rs.tdwg.org/dwc/terms/occurrenceStatus)

Term describing the status of the organism in the given area based on how frequent the species occurs. See the Occurrence status vocabulary at http://rs.gbif.org/vocabulary/gbif/occurrence_status.xml for recommended values.

Vocabulary: http://rs.gbif.org/vocabulary/gbif/occurrence_status.xml

Example: "Absent" "present"

Returns:

  • (String)


88
89
90
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 88

def occurrenceStatus
  @occurrenceStatus
end

#sourceString

source (http://purl.org/dc/terms/source)

Source reference for this distribution record. Can be proper publication citation, a webpage URL, etc.

Example: "Euro+Med Plantbase - the information resource for Euro-Mediterranean plant diversity (2006-). Published on the Internet http://ww2.bgbm.org/EuroPlusMed/ July, 2009"

Returns:

  • (String)


165
166
167
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 165

def source
  @source
end

#startDayOfYearString

startDayOfYear (http://rs.tdwg.org/dwc/terms/startDayOfYear)

Seasonal temporal subcontext within the eventDate context. Useful for migratory species. The earliest ordinal day of the year on which the distribution record is valid. Numbering starts with 1 for January 1 and ends with 365 (or 366 if it is a leap year) for December 31.

Example: "90"

Returns:

  • (String)


145
146
147
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 145

def startDayOfYear
  @startDayOfYear
end

#taxonIDString

taxonID (http://rs.tdwg.org/dwc/terms/taxonID)

The first field in the data file should be the taxonID representing the taxon in the core data file to which this distribution record points. This identifier provides the link between the core data record and the extension record.

Returns:

  • (String)


31
32
33
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 31

def taxonID
  @taxonID
end

#threatStatusString

threatStatus (http://rs.gbif.org/terms/1.0/threatStatus)

Threat status of a species as defined by IUCN: http://www.iucnredlist.org/static/categories_criteria_3_1 - categories

Vocabulary: http://rs.gbif.org/vocabulary/iucn/threat_status.xml

Example: "EX" "EW" "CR"

Returns:

  • (String)


99
100
101
# File 'lib/export/dwca/gbif_profile/species_distribution.rb', line 99

def threatStatus
  @threatStatus
end