Skip to content

Add labels to ID fields #24

@acka47

Description

@acka47

For example http://test.lobid.org/authorities/118506560.

Currently looks like:

{
"professionOrOccupation": [
  "http://d-nb.info/gnd/4131406-2",
  "http://d-nb.info/gnd/4012434-4"
  ]
}

With added labels:

{
   "professionOrOccupation":[
      {
         "id":"http://d-nb.info/gnd/4131406-2",
         "preferredName":"Pianist"
      },
      {
         "id":"http://d-nb.info/gnd/4012434-4",
         "preferredName":"Dirigent"
      }
   ]
}

However, there are several other cases (e.g. placeOfDeath, relatedWork, familialRelationship) where we only have internal GND links without labels in the data. Thus, a general approach would probably make sense to automatically add a label for all URIs from the http://d-nb.info/gnd/ namespace. (If we implement a general approach, it should be possible to exclude some properties from this label enrichment, e.g. we might get problems with trying to fetch the label for deprecatedUri and also labels for sameAs links within GND aren't necessary I think.) What do you think, @fsteeg?

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