Class: Export::Dwca::GbifProfile::AlternateIdentifier

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

Constant Summary collapse

NAMESPACES =
{
  :taxonID => 'http://rs.tdwg.org/dwc/terms/taxonID',
  :identifier => 'http://purl.org/dc/terms/identifier',
  :title => 'http://purl.org/dc/terms/title',
  :subject => 'http://purl.org/dc/terms/subject',
  :format => 'http://purl.org/dc/terms/format'
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#formatString

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

Optional mime type of content returned by identifier in case the identifier is resolvable. Plain UUIDs for example do not have a dc:format return type, as they are not resolvable on their own. For a list of MIME types see the list maintained by IANA: http://www.iana.org/assignments/media-types/index.html, in particular the text http://www.iana.org/assignments/media-types/text/ and application http://www.iana.org/assignments/media-types/application/ types. Frequently used values are text/html, text/xml, application/rdf+xml, application/json

Example: application/rdf+xml

Returns:

  • (String)


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

def format
  @format
end

#identifierString

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

External identifier used for the same taxon. Can be a URL pointing to a webpage, an xml or rdf document, a DOI, UUID or any other identifer

Example: "urn:lsid:ipni.org:names:692570-1:1.4"

Returns:

  • (String)


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

def identifier
  @identifier
end

#subjectString

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

keywords qualifying the identifier

Returns:

  • (String)


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

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

Returns:

  • (String)


22
23
24
# File 'lib/export/dwca/gbif_profile/alternate_identifier.rb', line 22

def taxonID
  @taxonID
end

#titleString

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

An optional display label for the URL that the publisher may prefer be displayed with the identifier or link

Example: "Danaus plexippus page", "COL Taxon LSID"

Returns:

  • (String)


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

def title
  @title
end