samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

loc linked data fails to fetch term for subauthority classification #244

Closed elrayle closed 5 years ago

elrayle commented 5 years ago

Description

For authority LOC and subauthority classification, there are no results returned.

Expected

http://localhost:3000/qa/show/linked_data/loc/classification/KF26

Should return...

{
  "uri":"http://id.loc.gov/authorities/classification/KF26",
  "id":"KF26",
  "label":["Monographs. By committee"],
  "altlabel":[
    "Law--United States (General)--Congressional documents--Committee hearings--Senate--Standing committees--Monographs. By committee",
    "Legislative hearings--Congress (U.S.)--Senate"]
  ...
}

Actual

http://localhost:3000/qa/show/linked_data/loc/classification/KF26

Returns...

{
  "uri":"",
  "id":"",
  "label":[],
}

Cause

LOC authority is configured to retrieve the id from the graph using loc:lccn. When the subauthority is classification, there isn't a triple for loc:lccn. Instead, the id is in madsrdf:code.