Class: Export::Dwca::GbifProfile::SpeciesDescription

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

Constant Summary collapse

NAMESPACES =
{
  :taxonID => 'http://rs.tdwg.org/dwc/terms/taxonID',
  :type => 'http://purl.org/dc/terms/type',
  :description => 'http://purl.org/dc/terms/description',
  :source => 'http://purl.org/dc/terms/source',
  :language => 'http://purl.org/dc/terms/language',
  :created => 'http://purl.org/dc/terms/created',
  :creator => 'http://purl.org/dc/terms/creator',
  :contributor => 'http://purl.org/dc/terms/contributor',
  :audience => 'http://purl.org/dc/terms/audience',
  :license => 'http://purl.org/dc/terms/license',
  :rightsHolder => 'http://purl.org/dc/terms/rightsHolder'
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#audienceString

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

A class or description for whom the dwc:description is intended or useful

Example: "experts", "general public", "children"

Returns:

  • (String)


91
92
93
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 91

def audience
  @audience
end

#contributorString

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

An entity responsible for making contributions to the textual information provided for a description

Returns:

  • (String)


83
84
85
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 83

def contributor
  @contributor
end

#createdString

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

The date and time this description was written or last updated

Example: "2010-09-29"

Returns:

  • (String)


68
69
70
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 68

def created
  @created
end

#creatorString

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

The author(s) of the textual information provided for a description

Example: "Hershkovitz, P."

Returns:

  • (String)


76
77
78
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 76

def creator
  @creator
end

#descriptionString

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

Any descriptive free text matching the category given by the type

Returns:

  • (String)


46
47
48
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 46

def description
  @description
end

#languageString

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

ISO 639-1 language code used for the vernacular name value.

Example: "ES", "Spanish", "EspaƱol"

Returns:

  • (String)


60
61
62
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 60

def language
  @language
end

#licenseString

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

Official permission to do something with the resource. Please use Creative Commons URIs if you can.

Example: CC-BY

Returns:

  • (String)


100
101
102
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 100

def license
  @license
end

#rightsHolderString

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

A person or organization owning or managing rights over the resource.

Returns:

  • (String)


106
107
108
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 106

def rightsHolder
  @rightsHolder
end

#sourceString

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

Source reference of this description; a URL or full publication citation

Returns:

  • (String)


52
53
54
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 52

def source
  @source
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 description record points. This identifier provides the link between the core data record and the extension record.

Returns:

  • (String)


28
29
30
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 28

def taxonID
  @taxonID
end

#typeString

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

The kind of description given. See the Description Type vocabulary at http://rs.gbif.org/vocabulary/gbif/description_type.xml for a possible list of description types.

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

Example: "morphology", "distribution", "diagnostic"

Returns:

  • (String)


40
41
42
# File 'lib/export/dwca/gbif_profile/species_description.rb', line 40

def type
  @type
end