Skip to content

Commit

Permalink
votes knesset member join (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
slallum authored and OriHoch committed Feb 23, 2018
1 parent 2f70fa7 commit 715dc79
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions votes_kmember/knesset.source-spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
join_votes_shadow_mk:
description: join the votes sessions, the votes themselves, and the voters
pipeline:
- run: load_resource
parameters:
url: https://storage.googleapis.com/knesset-data-pipelines/data/people/members/joined-mks/datapackage.json
resource: mk_individual
- run: load_resource
parameters:
url: https://storage.googleapis.com/knesset-data-pipelines/data/votes/vote_rslts_kmmbr_shadow/datapackage.json
resource: vote_rslts_kmmbr_shadow

- run: join
parameters:
source:
name: mk_individual
key: "{mk_individual_first_name} {mk_individual_name}"
target:
name: vote_rslts_kmmbr_shadow
key: ["kmmbr_name"]
fields:
mk_individual_id:
name: mk_individual_id
full: true

- run: dump.to_path
parameters:
out-path: ../data/votes_kmember/joined-votes-kmember

0 comments on commit 715dc79

Please sign in to comment.