Class: Export::Dwca::GbifProfile::Reference

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

Constant Summary collapse

NAMESPACES =
{
  :taxonID => 'http://rs.tdwg.org/dwc/terms/taxonID',
  :identifier => 'http://purl.org/dc/terms/identifier',
  :bibliographicCitation => 'http://purl.org/dc/terms/bibliographicCitation',
  :title => 'http://purl.org/dc/terms/title',
  :creator => 'http://purl.org/dc/terms/creator',
  :date => 'http://purl.org/dc/terms/date',
  :source => 'http://purl.org/dc/terms/source',
  :description => 'http://purl.org/dc/terms/description',
  :subject => 'http://purl.org/dc/terms/subject',
  :language => 'http://purl.org/dc/terms/language',
  :rights => 'http://purl.org/dc/terms/rights',
  :taxonRemarks => 'http://rs.tdwg.org/dwc/terms/taxonRemarks',
  :type => 'http://purl.org/dc/terms/type'
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#bibliographicCitation ⇒ String

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

A text string referring to an un-parsed bibliographic citation.

Example: "Hartge, P., Genetics of reproductive lifespan. Nature Genetics 41, 637 - 638 (2009)"

Returns:

  • (String)


50
51
52
# File 'lib/export/dwca/gbif_profile/reference.rb', line 50

def bibliographicCitation
  @bibliographicCitation
end

#creator ⇒ String

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

The author or authors of the referenced work

Example: "Patricia Hartge"

Returns:

  • (String)


67
68
69
# File 'lib/export/dwca/gbif_profile/reference.rb', line 67

def creator
  @creator
end

#date ⇒ String

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

Date of publication, recommended ISO format YYYY or YYYY-MM-DD

Example: "6/1/2009"; "2009"

Returns:

  • (String)


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

def date
  @date
end

#description ⇒ String

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

Abstracts, remarks, notes

Example: "Five genome-wide association studies of the timing of menarche and menopause have now taken us beyond the range of candidate gene and linkage studies. The list of new genetic associations identified for these two traits should shed light on the mechanisms of ovarian aging, as well as breast cancer and other diseases associated with reproductive lifespan."

Returns:

  • (String)


97
98
99
# File 'lib/export/dwca/gbif_profile/reference.rb', line 97

def description
  @description
end

#identifier ⇒ String

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

DOI, ISBN, URI, etc refering to the reference. This can be repeated in multiple rows to include multiple identifiers, e.g. a DOI and a URL pointing to a pdf of the article.

Example: doi:10.1038/ng0609-637; http://www.nature.com/ng/journal/v41/n6/pdf/ng0609-637.pdf

Returns:

  • (String)


41
42
43
# File 'lib/export/dwca/gbif_profile/reference.rb', line 41

def identifier
  @identifier
end

#language ⇒ String

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

ISO 639-1 language code indicating the source language of the referent publication

Example: "en"

Returns:

  • (String)


116
117
118
# File 'lib/export/dwca/gbif_profile/reference.rb', line 116

def language
  @language
end

#rights ⇒ String

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

Copyright information relating to the referenced publication

Example: "Copyright © 2009 Wiley-Liss, Inc., A Wiley Company"

Returns:

  • (String)


124
125
126
# File 'lib/export/dwca/gbif_profile/reference.rb', line 124

def rights
  @rights
end

#source ⇒ String

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

If the reference is part of a larger work, this can be cited here. In case of articles this is the journal, for parts of books the book itself

Example: Nature Genetics 41, 635 (2009)

Returns:

  • (String)


84
85
86
# File 'lib/export/dwca/gbif_profile/reference.rb', line 84

def source
  @source
end

#subject ⇒ String

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

Semicolon separated list of keywords. Can include a resource qualifier that specifies the relation of this reference to the taxon, e.g namePublishedIn

Example: genomics; epidemiology

Returns:

  • (String)


107
108
109
# File 'lib/export/dwca/gbif_profile/reference.rb', line 107

def subject
  @subject
end

#taxonID ⇒ String

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

Returns:

  • (String)


30
31
32
# File 'lib/export/dwca/gbif_profile/reference.rb', line 30

def taxonID
  @taxonID
end

#taxonRemarks ⇒ String

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

Annotation of taxon-specific information related to the referenced publication.

Example: "transferred H. nigritarsus to Acanolonia"; "Type specimen is a skeleton"

Returns:

  • (String)


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

def taxonRemarks
  @taxonRemarks
end

#title ⇒ String

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

Title of book or article

Example: "Genetics of reproductive lifespan", "Field Guide to Moths of Eastern North America"

Returns:

  • (String)


59
60
61
# File 'lib/export/dwca/gbif_profile/reference.rb', line 59

def title
  @title
end

#type ⇒ String

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

Used to assign a bibliographic reference to list of taxonomic or nomenclatural categories. Best practice is to use a controlled vocabulary. See an example below in data type.

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

Example: "Original publication of new combination (comb nov.)"

Returns:

  • (String)


146
147
148
# File 'lib/export/dwca/gbif_profile/reference.rb', line 146

def type
  @type
end