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

Create workspaces from OAI-PMH links #539

Closed
wrznr opened this issue Jul 16, 2020 · 6 comments
Closed

Create workspaces from OAI-PMH links #539

wrznr opened this issue Jul 16, 2020 · 6 comments
Assignees

Comments

@wrznr
Copy link
Contributor

wrznr commented Jul 16, 2020

Many libraries deliver METS files via a machine-readable OAI-PMH interface. E.g.,
image

with https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oai:de:slub-dresden:db:id-497166623

Such links are not compatible with the ocrd workspace clone command. Since the direct link to the METS file is not provided, it is hard to create a workspace in this context. It would be fantastic if a harvesting option for OAI-PMH could be directly provided by ocrd.

@mikegerber
Copy link
Contributor

Yes, definitely an important task that I needed myself in the past!

@stweil
Copy link
Contributor

stweil commented Aug 7, 2020

I don't understand this issue. https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oai:de:slub-dresden:db:id-497166623 is the direct link to the METS.

@kba
Copy link
Member

kba commented Aug 7, 2020

I don't understand this issue. https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oai:de:slub-dresden:db:id-497166623 is the direct link to the METS.

It's not the METS itself, it's a OAI-PMH GetRecord response.

@mikegerber
Copy link
Contributor

I don't understand this issue. https://digital.slub-dresden.de/oai/?verb=GetRecord&metadataPrefix=mets&identifier=oaideslub-dresden:db:id-497166623 is the direct link to the METS.

It's not the METS itself, it's a OAI-PMH GetRecord response.

Which contains the METS ;)

@wrznr and me want an easy way to create a workspace from such a OAI-PMH response, i.e. make unwrapping the METS work with clone.

@bertsky
Copy link
Collaborator

bertsky commented Oct 9, 2020

I assume this was fixed exhaustively by #581?

@mikegerber
Copy link
Contributor

I think this can be closed, as it's working fine:

% cd `mktemp -d`    
% ocrd workspace clone https://oai.sbb.berlin/\?verb\=GetRecord\&metadataPrefix\=mets\&identifier\=oai%3Adigital.staatsbibliothek-berlin.de%3APPN867445300
11:36:10.592 INFO ocrd_models.utils.is_oai_content - response data root.tag: '{http://www.openarchives.org/OAI/2.0/}OAI-PMH'
11:36:10.622 INFO ocrd.workspace.save_mets - Saving mets '/tmp/tmp.wkQDaCfgbP/mets.xml'
/tmp/tmp.wkQDaCfgbP

@kba kba closed this as completed Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants