Code Monkey home page Code Monkey logo

proaixy's Introduction

Proaixy

A simple OAI proxy adding sets to the records, to enable a "search" by author name for instance.

Proaixy serves the metadata it harvests from its sources on a single endpoint, and adds sets to these records. These "virtual" sets are created by extractors using the metadata itself.

Proaixy is written as a Django website, using Celery as task manager.

Harvesting method

Proaixy was designed to harvest from unstable sources i.e. that do not exactly comply with the OAI-PMH standard, or return a dirty XML output, or return various kinds of errors.

The goal is to minimize the amount of records we have to download again after these failures. Hence proaixy harvests records by batches of records contained in a small timeframe (one week by default), starting with the earliest datestamp declared by the interface.

Installation

You need the following dependencies (on Debian): postgresql-server-dev-9.4 python-dev build-essential libxml2-dev libxslt1-dev

I recommend installing the following dependencies in a virtualenv: Python dependencies can be installed using pip install -r requirements.txt (you can do it in a virtualenv).

  1. Create a postgresql database and put the access details in proaixy/settings.py
  2. Run python manage.py syncdb. You will be prompted to create an admin account on the interface.
  3. Run celery --app=proaixy.celery:app worker -B -l INFO
  4. In parallel, run python manage.py runserver

You can access the interface at http://localhost:8000/

The OAI endpoint can be found at http://localhost:8000/oai

Configuration

Log in to http://localhost:8000/. You will find a form to add a new OAI-PMH source. Two fields are required:

  • The URL of the endpoint
  • A short identifier for the source, preferably without spaces and special characters (something you can write in an OAI set) Proaixy will query the endpoint to get more details about it, using the Identify verb.

Once it is added, you can harvest it by clicking the appropriate link. Harvesting can be stopped by "revoking" the appropriate task. Only the current batch of records will have to be downloaded again in a later harvest.

proaixy's People

Contributors

wetneb avatar zuphilip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

proaixy's Issues

OpenAIRE must be manually refreshed

Currently fetching data from OpenAIRE is brittle and must be done manually. It would be better to figure out a consistent way to do it, so it can be performed automatically.

Add AMOLF eprints

AMOLF has an eprint repository which I think is currently not being indexed. As an example, this paper is available as an eprint,

https://amolf.nl/publications/a-new-cathodoluminescence-system-for-nanoscale-optics-materials-science-and-geology

but http://doai.io/10.1017/S1551929516000377 currently sends to the Cambridge paywall. This does require a way of telling whether the repo actually has an eprint, though.

If this isn't the place to report where this should go, then the doai.io page should indicate what to do in such cases.

Handle content-negotiation

To provide a real alternative, outputting bibtex for citations and such things as well.

I can handle it.

Add OAI-PMH view without sets

It can be expensive to fetch the sets a record belongs to: provide a (non-OAI compliant view) that lists records without the sets they belong to?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.