Skip to content

The R28 issue, ID and altLabel #8

@BrianKingNOC

Description

@BrianKingNOC

Here is what @eric put in an email, so we can bring the discussion here to move forwards

Thanks for looking into this but NVS should not deflect this issue those who want to validate metadata – that’s what the NVS was designed to do. I see a couple possible solutions that NERC can implement:

  1. Fix R28 by replacing IDs (CB0008,…) with the labels already in use by Argo (APMT,…). Since there are 1000’s of Argo metadata files coded this way, R28 should not be the only deviant.
    Or…
  2. Add an NVS API allows users to pass the altLabel as an alternative to the term ID for validation. Then NVS will search the table for the label, and return the same data (HTML, JSON-LD, Turtle, or RDF/XML) as if it has been called with a Term identifier. This requires some server coding and a commitment to unique altLabels as well as term ID’s. It might look like:
    In my code, I would search using termID, if it is encoded fully qualified URL, e.g.,

“CONTROLLER_BOARD_TYPE_PRIMARY” : “SDN:R28::CB0008”

Validate with https://vocab.nerc.ac.uk/collection/R28/current/CB0008/

If it were an unqualified value from an existing float

            “CONTROLLER_BOARD_TYPE_PRIMARY” : “APMT”

Validate with something like: https://vocab.nerc.ac.uk/collection/R28/current/?altLabel=APMT
If query term (e.g., APMT) is not among the altLabel’s for R28, NVS would return HTTP code 404 “Not Found”

So, if NERC is not going to make tables backwards compatible (option 1) then they have responsibility to “fix it” with something like option2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions