Skip to content

MellonScholarlyCommunication/OAI-Bridge

Repository files navigation

OAI-Bridge

A OAI-PMH to Event Notifications.

This project provides an implementation of a OAI-PMH harvest to Event Notification bridge. The code supports incremental harvesting of a OAI endpoint (https://repository.ubn.ru.nl in our example). For each new or updated OAI record a new Event Notification fragment will be created in the ./in directory. These Event Notification fragments are then offered to a CitationExtractionService as an as:Offer. See the CitationExtractionService at the end of this document.

Node

v16.13.0

Install

yarn install
yarn global add community-solid-server

Demo

Start a Solid CSS server which provides a local inbox

yarn solid

Remove all data from ./in and delete the cache file ./cache.db.

yarn clean:real

Harvest some OAI data from an institutional repository (incremental harvesting). By default we process only 10 records at a time and serialize only records that contain full text. You may want to run this command several times when a repository has very many recent uploaded/changed records.

yarn oai:radboud

Run an orchestrator on a the files in in/ requesting processing it with the rules/offerCitationExtraction.n3 rule file. This rule request sending a notification to an LDN inbox.

yarn orch

The previous step created files in out file which need to be executed. In this step the notifiction will be sent.

yarn pol

Visit http://localhost:3000/ces/inbox/ and check the latest incoming notification.

Project

This code is part of the Mellon Scholarly Communication project.

See also

CitationExtractorService CitationRelayService Koreografeye

About

An OAI-PMH to Event Notifications bridge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published