Class: Export::Dwca::GbifProfile::ResourceRelationship
- Inherits:
-
Object
- Object
- Export::Dwca::GbifProfile::ResourceRelationship
- Defined in:
- lib/export/dwca/gbif_profile/resource_relationship.rb
Instance Attribute Summary collapse
-
#relatedResourceID ⇒ String
relatedResourceID (rs.tdwg.org/dwc/terms/relatedResourceID).
-
#relationshipAccordingTo ⇒ String
relationshipAccordingTo (rs.tdwg.org/dwc/terms/relationshipAccordingTo).
-
#relationshipEstablishedDate ⇒ String
relationshipEstablishedDate (rs.tdwg.org/dwc/terms/relationshipEstablishedDate).
-
#relationshipOfResource ⇒ String
relationshipOfResource (rs.tdwg.org/dwc/terms/relationshipOfResource).
-
#relationshipRemarks ⇒ String
relationshipRemarks (rs.tdwg.org/dwc/terms/relationshipRemarks).
-
#resourceRelationshipID ⇒ String
resourceRelationshipID (rs.tdwg.org/dwc/terms/resourceRelationshipID).
-
#scientificName ⇒ String
scientificName (rs.tdwg.org/dwc/terms/scientificName).
-
#taxonID ⇒ String
taxonID (rs.tdwg.org/dwc/terms/taxonID).
Instance Attribute Details
#relatedResourceID ⇒ String
relatedResourceID (rs.tdwg.org/dwc/terms/relatedResourceID)
When the related taxon occurs in the core data file, this is the taxonID of that taxon.
20 21 22 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 20 def @relatedResourceID end |
#relationshipAccordingTo ⇒ String
relationshipAccordingTo (rs.tdwg.org/dwc/terms/relationshipAccordingTo)
The source (person, organization, publication, reference) establishing the relationship between the two resources.
Example: “Julie Woodruff”
48 49 50 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 48 def relationshipAccordingTo @relationshipAccordingTo end |
#relationshipEstablishedDate ⇒ String
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
58 59 60 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 58 def relationshipEstablishedDate @relationshipEstablishedDate end |
#relationshipOfResource ⇒ String
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”
39 40 41 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 39 def relationshipOfResource @relationshipOfResource end |
#relationshipRemarks ⇒ String
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”
67 68 69 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 67 def relationshipRemarks @relationshipRemarks end |
#resourceRelationshipID ⇒ String
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”
76 77 78 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 76 def resourceRelationshipID @resourceRelationshipID end |
#scientificName ⇒ String
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.)”
28 29 30 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 28 def scientificName @scientificName end |
#taxonID ⇒ String
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.
13 14 15 |
# File 'lib/export/dwca/gbif_profile/resource_relationship.rb', line 13 def taxonID @taxonID end |