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

Provide "subjectOf" as BEACON ? #1987

Open
dr0i opened this issue Apr 18, 2024 · 1 comment
Open

Provide "subjectOf" as BEACON ? #1987

dr0i opened this issue Apr 18, 2024 · 1 comment

Comments

@dr0i
Copy link
Member

dr0i commented Apr 18, 2024

Via email from S.H. from 15.04.24:

Bei der Gelegenheit möchte ich auch gleich noch eine BEACON-Datei anregen,
die ebenso themenbasiert (subjectOf) zum hbz-Verbundkatalog verlinkt. Für
diesen gibt es ja bisher nur die personen/organisationsbasierte
(contributor) BEACON https://lobid.org/download/beacons/hbzlod-pndbeacon.txt

Analogue to hbz/nwbib#646 : providing a subjectOf list as Beacon.
(This may generate too much work to do "by the way" as it would mean not only to iterate over 0.5M records but 26M.)

@dr0i
Copy link
Member Author

dr0i commented Apr 18, 2024

Maybe it is sufficient to query the list of interest by using the API like this:

subject.componentList.id:"https://d-nb.info/gnd/4066009-6" OR subject.componentList.id:"https://d-nb.info/gnd/4004744-1"

You can "OR" as many GND-subjects (or DDC etc) as you want (note that it may be necessary to POST instead of GET since the length of a URL has a restriction).

Get all the data like this:

curl --header "Accept-Encoding: gzip" 'http://lobid.org/resources/search?q=subject.componentList.id%3A%22https%3A%2F%2Fd-nb.info%2Fgnd%2F4066009-6%22+OR++subject.componentList.id%3A%22https%3A%2F%2Fd-nb.info%2Fgnd%2F4004744-1%22&format=jsonl' > architektur.jsonl.gz

(more API tricks e.g. in http://lobid.org/resources/api#bulk_downloads)
Then gunzip architektur.jsonl.gz.
Get all lobid/alma-IDs like this:
jq .almaMmsId architektur.jsonl

I will asked S.H. if this would be feasible.

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

No branches or pull requests

1 participant