Code Monkey home page Code Monkey logo

grakn_musicbrainz_sample_migration's Introduction

grakn_musicbrainz_sample_migration

A sample script to migrate some musical entities from musicbrainz.org to grakn graph databases.

PS: In this example, we only used the first 100 artist,recording and release_group entities from the musicbrainz.org database. For scrapping data from musicbrainz database there are set of functions available in the following repository if you have direct access to the database.https://github.com/albincorreya/musicbrainz_queries

Refer to https://musicbrainz.org/doc/MusicBrainz_Server/Setup for server setup.

Screenshot of Grakn web interface

alt text

Note :

Please go through the basic documentation of Grakn database and Graql query language. https://grakn.ai/pages/documentation/get-started/quickstart-tutorial.html

Also go thorugh basic details of musicbrainz.org schema representation. https://musicbrainz.org/doc/MusicBrainz_Database/Schema


Setup

  1. Download and setup Grakn database from https://grakn.ai/pages/documentation/get-started/setup-guide.html

  2. Downoad or clone this repo to the Grakn folder that you had previously downloaded.

  3. Navigate to your Grakn directory and run the following commands.

      $ cd "your_directory"
    
      $ ./bin/grakn.sh start
      
      $ ./bin/graql.sh -f ./simplebrainz_ontology/ontology.gql
    
  4. For command-line graql interface, run the following.

      $ ./bin/grakn.sh start
    
  5. Go to http://0.0.0.0:4567 for the interactive web interface


CSV Migration

  1. Run the shell script "migrate_loader.sh" from home directory

    ./migrate_loader.sh '''your grakn directory'''

grakn_musicbrainz_sample_migration's People

Contributors

albincorreya avatar

Watchers

 avatar  avatar

Forkers

fat84

grakn_musicbrainz_sample_migration's Issues

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.