Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

OAI-PMH Harvesting

Links

Concepts

  • harvesting server:your Dataverse installation can make some of the local dataset metadata available to remote harvesting clients

  • record: A record is metadata expressed in a single format. A record is returned in an XML-encoded byte stream in response to an OAI-PMH request for metadata from an item. A record is identified unambiguously by:

    • unique identifier
    • metadataPrefix: identifying the metadata format of the record
    • datestamp
  • OAI verbs

  • metadataPrefix ?

Dataverse

OAI-PMH endpoint can be accessed at http(s)://<Your Dataverse Installation FQDN>/oai

GetRecord

https://portal.odissei.nl/oai?verb=GetRecord&identifier=doi:10.17026/DANS-222-GVUS&metadataPrefix=oai_dc

curl "https://portal.odissei.nl/oai?verb=GetRecord&identifier=doi:10.17026/DANS-222-GVUS&metadataPrefix=dcat3-rdfxml"

Harvesting DANS Data Stations Datasets with OAI-PMH & Python Sickle

In Dublin-Core formatz

oai-pmh-sickle.ipynb uses Python Sickle library, a lightweight OAI-PMH client library written in Python, designed for retrieving data from OAI interfaces the Pythonic way

Warning

By default, Sickle’s mapping of the record XML into Python dictionaries is tailored to work only with Dublin-Core-encoded metadata payloads. Other formats most probably won’t be mapped correctly, especially if they are more hierarchically structured than Dublin Core.

Requirements:

  • jupyter
  • sickle - pip install sickle

OAI-PMH and Python oaipmh

https://github.com/eth-library/oaipmh

TODO....

Get Dataset RDF(XML) & PARSE it

A more bare bones approaches using requests library, xml.etree and RDFLib.

In oai-pmh-dcatap.ipynb which requests the DCAT-AP export from ODISSEI Portal

Requirements:

  • requests
  • rdflib

About

Investigation DANS Data Station harvesting with OAI-PMH

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages