Code Monkey home page Code Monkey logo

demo-aspace-migration's Introduction

Demo ASpace migration

This repo demonstrates a typical custom ArchivesSpace data migration at Lyrasis. There are three main components that make up this repo:

  • kiba-extend - a suite of Kiba extensions useful in transforming and reshaping data

  • aspace-client-tasks - a collection of thor tasks for processing data and interacting with the ASpace API

  • kiba-extend-project - a sample ETL project using kiba-extend. The top half of this repo is generated using this template.

kiba-extend

kiba-extend is used to perform the bulk of the transformations needed to get data from its source format into something ASpace expects. You’ll see the transformation jobs defined in ./lib/demo/jobs.

./lib/demo/registry_data.rb contains all of the in and out registries that are used by the transformation jobs to grab data from a source file and save transformed data to a target file.

aspace-client-tasks

aspace-client-tasks is built on top of the archivesspace-client gem. I use aspace-client-tasks to perform any additional data transformation that ASpace expects that kiba-extend is unable to do. An example of this is building hierarchical archival object records from tabular references. See ./aspace-client-tasks/aspace_client/project_name/hierarchy.rb.

Common API tasks include:

  • Getting data from ASpace

  • Attaching ASpace data to data that’s about to go into ASpace. For example, attaching agent and subject records to incoming object records.

  • Sending data to ASpace

  • Moving data around in ASpace. For example, moving child records under their parents.

To learn more about how this piece is structured and used, see the aspace-client-tasks repo

demo-aspace-migration's People

Contributors

eightbitter avatar

Watchers

James Cloos avatar  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.