Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Direct Lookups for LC Classification Schemes #372

Open
sfolsom opened this issue Aug 2, 2023 · 2 comments
Open

Add Direct Lookups for LC Classification Schemes #372

sfolsom opened this issue Aug 2, 2023 · 2 comments

Comments

@sfolsom
Copy link
Contributor

sfolsom commented Aug 2, 2023

Create direct lookups for the following LC Classification Schemes.

The Samvera QA Code seems to offer search for some LC vocabs: https://github.com/samvera/questioning_authority/wiki/Connecting-to-Library-of-Congress-%28LOC%29.

  • Hopefully we can turn this on and add new vocabs for our app.
  • If not, we’ve discussed the possibility of converting LC suggest2 json response into linked data that QA can recognize and use the linked data module to translate

Related links:
See https://id.loc.gov/techcenter/searching.html for API documentation.

Example of a direct search config to base new config off:

@chrisrlc
Copy link

@sfolsom This is ready for you to test on lookup-int! Direct lookup results use the id.loc.gov api (same results as what you'd find here: https://id.loc.gov/search/?q=cs:http://id.loc.gov/vocabulary/classSchemes). Each result has an id, label, and uri parsed from: https://id.loc.gov/search/?q=cs:http://id.loc.gov/vocabulary/classSchemes&format=json

Please let me know if you'd like any changes!

Example endpoint: https://lookup-int.ld4l.org/authorities/search/loc/classSchemes?q=superintendent

Note: This is one of those lc authorities I mentioned that returns what appears to be duplicate results, e.g. https://id.loc.gov/search/?q=superintendent&q=cs%3Ahttp%3A%2F%2Fid.loc.gov%2Fvocabulary%2FclassSchemes. Our QA endpoint filters out these duplicate ids.

@sfolsom
Copy link
Contributor Author

sfolsom commented Oct 31, 2023

Looks good. I don't understand why https://id.loc.gov/search has duplicate results, but it's nice to see that the API results do not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

No branches or pull requests

2 participants