Skip to content

Request - flat.related_record_cache #446

@dustymc

Description

@dustymc

Help us understand your request (check below):

  • other

Describe what you're trying to do

Resolve #406

I don't have a functional cache of relationships, which are just identifiers applied to whatever's specified by id_references.

I almost have what I need in related_record_cache, I'll just expand it to include nonresolvable relationships (which will result in a lot of NULLs, which is fine) unless someone has better ideas.

In the /guid/ UI, these data are used for the overlay (layout is off topic here, I just need to understand what's necessary from the record view)

Image
  1. Does anyone see any problems with expanding this concept to non-resolveable identifiers, and

  2. While I'm changing stuff, does anything else need changed?

record might be the wrong term here, eg https://arctos.database.museum/guid/DMNS:Herp:232 the "record" will be DZTM 11873 which is a not-great identifier, an impossibly long way from a record, but I'm tempted to not change it anyway.

(And that one has potentially-useful information hidden in remarks!!!! WHY??!!? Ping @acdoll )

The current data looks like this:

[
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:157088",
    "locality": "Wolf Management Facility, Sevilleta National Wildlife Refuge",
    "geography": "United States, New Mexico, Socorro County",
    "relationship": "offspring of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:215274",
    "locality": "Wolf Management Facility, Sevilleta National Wildlife Refuge",
    "geography": "United States, New Mexico, Socorro County",
    "relationship": "parent of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:231077",
    "locality": "Arizona",
    "geography": "United States",
    "relationship": "offspring of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:291520",
    "locality": "Blue Range Wolf Recovery Area",
    "geography": "United States",
    "relationship": "parent of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:291520",
    "locality": "Blue Range Wolf Recovery Area",
    "geography": "United States",
    "relationship": "sibling of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:291521",
    "locality": "Blue Range Wolf Recovery Area",
    "geography": "United States",
    "relationship": "parent of",
    "identification": "Canis lupus baileyi"
  },
  {
    "family": "Canidae",
    "record": "https://arctos.database.museum/guid/MSB:Mamm:291522",
    "locality": "Blue Range Wolf Recovery Area",
    "geography": "United States",
    "relationship": "parent of",
    "identification": "Canis lupus baileyi"
  }
]

How-To


Please review the Arctos Code of Conduct to ensure respectful communication, and see https://handbook.arctosdb.org/how_to/How-to-Use-Issues-in-Arctos.html for more information about submitting and managing Issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityIssue is related to Arctos accessibility.Extended SpecimenIssues which are critical to participating in the Extended Specimen Network.Help wantedI have a question on how to use Arctos

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions