Skip to content
New issue

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

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

Already on GitHub? # to your account

Reverse lookup of work number given an associated image group number #77

Open
TBRC-Travis opened this issue Jul 27, 2021 · 4 comments
Open

Comments

@TBRC-Travis
Copy link

TBRC-Travis commented Jul 27, 2021

Sometimes we need to be able to identify a work number based on a given image group number. For example, what's the work number linked to image group number I1KG32?

On tbrc.org we can determine this by viewing the xmldoc: https://www.tbrc.org/xmldoc?rid=I1KG32

which has the node <imagegroup:isVolumeOf num="17" work="W1KG14"/> which gives you the corresponding work number W1KG14

Is there a LDS query that will give us similar information?

@eroux
Copy link
Contributor

eroux commented Jul 27, 2021

if you're not scared of turtle: http://purl.bdrc.io/resource/I1KG32.ttl has

bdo:volumeOf  bdr:W1KG14 ;

@TBRC-Travis
Copy link
Author

Not very user friendly but certainly the correct data is there, as you pointed out. Just a little hard to read with all that prefix data there.

@eroux
Copy link
Contributor

eroux commented Jul 27, 2021

I can create a new query, no problem. It's just that looking at the ttl on BUDA mirrors reading the xml on tbrc.org quite well, and this is something that can be used for many other uses cases beyond this one. And I think in the long term having one way to do that (looking at the xml / ttl) is more user friendly than having dozens of different queries... wdyt? (the query is just one line, I can do it)

@jimk-bdrc
Copy link

@eroux I'm all for it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants