Giter VIP home page Giter VIP logo

pudo-attic / opensanctions-kyb-graph-old Goto Github PK

View Code? Open in Web Editor NEW
7.0 6.0 1.0 1.81 MB

Know-your-business datasets (corporate registries converted to FollowTheMoney data format)

Home Page: https://www.opensanctions.org/kyb/

License: MIT License

Makefile 0.84% Python 13.81% Dockerfile 0.11% Shell 0.07% HTML 85.18%
beneficial-ownership beneficial-ownership-data open-data corporate-registry

opensanctions-kyb-graph-old's Introduction

opensanctions-kyb-graph-old's People

Contributors

pudo avatar simonwoerpel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

myvoyage

opensanctions-kyb-graph-old's Issues

Move all S3 uploads to a new prefix

I think we should go for: s3://data.opensanctions.org/graph/DATASET/index.json etc. and put the main catalog at s3://data.opensanctions.org/graph/index.json. (Remove from contrib/ where it is now).

Graph repo folder structure

  • sources/
    • cy_companies/
    • dk_cvr
  • Dockerfile
  • .github/workflows/build-cy-companies.yml
  • setup.py
  • common
    • init.py
    • bods

to discuss: logging

Some parsers log progress (e.g. every X parsed rows) and information about parsed files, some others do nothing. We should define a pattern and apply to all parsers.

Suggestion (as seen in the corpwatch parser):

  • log file name on start of parsing a specific file
  • then log every 100.000 rows/records
  • log finished count of records for this file
  • repeat
    This allows to keep track how source file sizes develop over time and to spot data source errors.

make a shell script for upload

Right now, we're using this command invocation to upload the resulting artifacts:

aws s3 sync --no-progress --cache-control "public, max-age=64600" --metadata-directive REPLACE --acl public-read data/export s3://data.opensanctions.org/graph/icij_offshoreleaks

I would like to replace this with a call to a common shell script, like this:

bash ../../scripts/upload.sh icij_offshoreleaks data/export 

In that script we can then add cloudfront cache invalidation and content-disposition headers for the data

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.