Giter Site home page Giter Site logo

adsimportpipeline's Introduction

ADSimportpipeline

Overview

Coordinates ingest of a full ADS record.

  1. Parses "classic" bibcodes files defined in settings.py
  2. Operates on any bibcode whose "timestamp" differs from the cooresponding "JSON_fingerprint" field in the mongodb
  3. Uses ads.ADSExports.ADSRecords to consolidate data from classic based on bibcodes in 2.
  4. Parses resulting xmlobject to python dict via xmltodict.py
  5. Enforces type=list on any potentially repeated entries
  6. Merges any repeated blocks having the same @type attribute
  7. Insert (upsert=True) data to mongodb

Step 1 is initiated by invoking run.py.

Async workflow with rabbitMQ

  • Invoking run.py --async publishes the [(bibcode, fingerprint),...] records to rabbitmq.
  • Workers that consume these messages are defined in pipeline/psettings.py and pipeline/workers.py.
  • Workers are controlled via a master process in pipeline/ADSimportpipeliny.py.

Requirements (version numbers will come at release time)

  • pika
  • rabbitmq
  • ADSExports
  • pymongo + mongo
  • Note: The rabbitmq server should be configured for frame_max=512000
  • Note: pika should be configured with frame_max=512000 (seemingly must be changed in spec.py in addition to normal connection definition)

adsimportpipeline's People

Contributors

vsudilov avatar

Watchers

Edwin Henneken avatar

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.