Giter Site home page Giter Site logo

opengov-opendata / openrefine-ckan-storage-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fadmaa/grefine-ckan-storage-extension

14.0 7.0 4.0 11.99 MB

Upload data directly from within Google Refine to CKAN using CKAN storage API

JavaScript 36.05% HTML 3.17% CSS 0.23% Java 60.55%

openrefine-ckan-storage-extension's Introduction

OpenRefine CKAN Storage Extension (for CKAN v2.2+)

!! Currently tested and works with OpenRefine 2.6-beta1 and CKAN v2.2+

Upload data directly from Google Refine to CKAN using CKAN API.

This project is a modifed and updated version of Fadmaa's work. The earlier version did not support CKAN API v3. The source code is updated to comply with CKAN 2.2 and API v3.

You can find more about the earlier version here:

http://lab.linkeddata.deri.ie/2011/grefine-ckan/

and

https://github.com/fadmaa/grefine-ckan-storage-extension

Installation

  • Make sure you have Google Refine installed on your machine (see here)

  • Pull grefine-ckan-storage-extension source into OpenRefine's extensions folder (create one if it doesn't exists):

      * ex. MAC OS:
      cd ~/Library/Application\ Support/OpenRefine/extensions/
      git clone https://github.com/Ontodia/grefine-ckan-storage-extension.git
    
  • Restart OpenRefine

Developers

  • If you made changes to the source you need to recompile OpenRefine.

  • Add following lines to OpenRefine/extensions/build.xml:

      <target name="build">
              ...
              <ant dir="grefine-ckan-storage-extension/" target="build" />
      </target>
      
      <target name="clean">
            ...
            <ant dir="grefine-ckan-storage-extension/" target="clean" />
      </target>
    
  • Recompile OpenRefine source code as::

      cd {{path_to_refine}}/OpenRefine/
      ./refine clean
      ./refine build
    
  • Restart OpenRefine

TODO

  • Currently the upload uses CKAN API create_resource action. By defualt this will timeout for large files after 30 secs. In order to fix this; use datastore api, split data into chunks and upload chunks via datastore api
  • Better documentation
  • Code clean-up
  • We should test and fix problems with other OpenRefine and CKAN versions.
  • Feel free to contribute

openrefine-ckan-storage-extension's People

Contributors

aykutsimseks avatar fadmaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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