Class: Export::Dwca::GbifProfile::ResourceRelationship

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

Instance Attribute Summary collapse

Instance Attribute Details

#relatedResourceIDString

relatedResourceID (rs.tdwg.org/dwc/terms/relatedResourceID)

When the related taxon occurs in the core data file, this is the taxonID of that taxon.

Returns:

  • (String)


20
21
22
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 20

def relatedResourceID
  @relatedResourceID
end

#relationshipAccordingToString

relationshipAccordingTo (rs.tdwg.org/dwc/terms/relationshipAccordingTo)

The source (person, organization, publication, reference) establishing the relationship between the two resources.

Example: “Julie Woodruff”

Returns:

  • (String)


48
49
50
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 48

def relationshipAccordingTo
  @relationshipAccordingTo
end

#relationshipEstablishedDateString

relationshipEstablishedDate (rs.tdwg.org/dwc/terms/relationshipEstablishedDate)

The date-time on which the relationship between the two resources was established. Recommended best practice is to use an encoding scheme, such as ISO 8601:2004(E).

Example: 1963-03-08T14:07-0600

Returns:

  • (String)


58
59
60
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 58

def relationshipEstablishedDate
  @relationshipEstablishedDate
end

#relationshipOfResourceString

relationshipOfResource (rs.tdwg.org/dwc/terms/relationshipOfResource)

The relationship of the resource identified by relatedResourceID to the subject (optionally identified by the resourceID). Recommended best practice is to use a controlled vocabulary.

Example: “duplicate of”, “mother of”, “endoparasite of”, “host to”, “sibling of”, “valid synonym of”, “located within”

Returns:

  • (String)


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

def relationshipOfResource
  @relationshipOfResource
end

#relationshipRemarksString

relationshipRemarks (rs.tdwg.org/dwc/terms/relationshipRemarks)

Comments or notes about the relationship between the two resources.

Example: “mother and offspring collected from the same nest”

Returns:

  • (String)


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

def relationshipRemarks
  @relationshipRemarks
end

#resourceRelationshipIDString

resourceRelationshipID (rs.tdwg.org/dwc/terms/resourceRelationshipID)

An identifier for an instance of relationship between one resource (the subject) and another (relatedResource, the object).

Example: “231” “urn:lsid:gbif.org:usages:32567”

Returns:

  • (String)


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

def resourceRelationshipID
  @resourceRelationshipID
end

#scientificNameString

scientificName (rs.tdwg.org/dwc/terms/scientificName)

When the related taxon (the object) does not occur in the core data file, refer to it by scientific name. Example: “Quercus agrifolia var. oxyadenia (Torr.)”

Returns:

  • (String)


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

def scientificName
  @scientificName
end

#taxonIDString

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

The identifier used in the core data file representing the taxon for which the current record refers. This identifier provides the link between the core data record and the extension record.

Returns:

  • (String)


13
14
15
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 13

def taxonID
  @taxonID
end