forked from LD4P/qa_server_aws_deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create direct linked data lookups for homosaurus and getty #36
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrisrlc
commented
Oct 4, 2023
•
edited
Loading
edited
- Add Direct Lookup for Homosaurus qa_server#374 - Add homosaurus direct lookup
- Usage:
- Term retrieval by id: http://localhost:3000/authorities/show/linked_data/homosaurus_direct/homoit0001709
- QA search url: https://homosaurus.org/v3/homoit0001709.jsonld
- Search: http://localhost:3000/authorities/search/linked_data/homosaurus_direct?q=Pronouns
- QA term url: https://homosaurus.org/search/v3.jsonld?q=Pronouns
- Term retrieval by id: http://localhost:3000/authorities/show/linked_data/homosaurus_direct/homoit0001709
- Could not find any documentation on how to adjust search url template to include language or maxRecords parameters
- Usage:
- Add Direct Lookup for Getty Vocabs qa_server#384 - Add getty direct lookup
- Usage:
- Term retrieval by id (aat subauthority): http://localhost:3000/authorities/show/linked_data/getty_direct/aat/300264973
- QA term url: https://vocab.getty.edu/aat/300264973
- Search (aat subauthority): http://localhost:3000/authorities/search/linked_data/getty_direct/aat?q=amphora
- QA search url: https://vocab.getty.edu/queries?toc=Finding_Subjects&query=CONSTRUCT+%7B%3Fs+dc%3Aidentifier+%3Fid%3B+skos%3AprefLabel+%3FprefLabel.%7D%0AWHERE+%7B%3Fs+a+skos%3AConcept%3B+luc%3Aterm+%22amphora%22%3B+skos%3AinScheme+aat%3A%3B+skos%3AprefLabel+%3FprefLabel.%0A++%3Fs+dc%3Aidentifier+%3Fid.%0A++BIND%28REPLACE%28%22amphora%22%2C+%22%5B%2C*%28%29%5D%22%2C+%22%22%2C+%22i%22%29+AS+%3Fstripped_query%29.%0A++BIND%28REPLACE%28%3Fstripped_query%2C+%22%28%5C%5CS%2B%29%5C%5Cs*%22%2C+%22%28%3F%3D.*%241%29%22%29+AS+%3Ffilter_query%29.%0A++FILTER+regex%28str%28%3FprefLabel%29%2C+%3Ffilter_query%2C+%22i%22%29.%0A%7D+ORDER+BY+asc%28lcase%28str%28%3FprefLabel%29%29%29&implicit=true&equivalent=false#Finding_Subjects
- Term retrieval by id (aat subauthority): http://localhost:3000/authorities/show/linked_data/getty_direct/aat/300264973
- Uses subauthorities to differentiate between aat, tgn, and ulan
- Theoretically, we could break this down further and create separate getty_directs for each aat, tgn, and ulan, and separate subauthorities to match current list from cached ld lookup configs (e.g. https://github.com/cul-it/qa_server_aws_deploy/blob/dev/config/authorities/linked_data/getty_aat_ld4l_cache.json#L154) - will bring this up during testing on int to see if there's a need.
- Adding a limit to the sparql query only limits # of rows in results, not number of distinct authorities, so couldn't include a maxRecords parameter in the search url template for users
- This was a pain. I'm basically just trying to massage the user-supplied query directly in the sparql query, and that has limits. Especially when there's logic in the getty docs that wants different handling depending on language and etc.
- Since the MESH direct lookup may also include a sparql query, we may be able to extrapolate some common sparql-handling logic (e.g. remove stop words and special characters?) and preprocess the user query and search url template in the ruby code. But for now, didn't want to override ld config handling code for a single direct lookup config if we didn't need to.
- Usage:
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 4, 2023 18:06
34b0f19
to
45fc096
Compare
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 4, 2023 19:09
45fc096
to
07b33e4
Compare
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 4, 2023 20:40
07b33e4
to
d90c39c
Compare
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 5, 2023 18:35
7444c8d
to
5eb114a
Compare
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 6, 2023 14:10
0c4a0d0
to
af57f37
Compare
chrisrlc
force-pushed
the
gettysaurus-ld
branch
from
October 6, 2023 14:37
af57f37
to
8cb5b3e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.