Tidak Ada Deskripsi

Liam 752efb11d0 cleaned 3 tahun lalu
.gitignore 070945fb94 first commit 4 tahun lalu
README.org 8c9942e5db big reformat 3 tahun lalu
dm-geber.csv 42942e4ca0 cleaning 4 tahun lalu
dm-relationship-geldleistung.csv 3c351c2010 wrong vals 4 tahun lalu
dm-relationship-geldleistung.ods 51f9241c38 cleaner 4 tahun lalu
dm-relationship-geldspende.csv 51f9241c38 cleaner 4 tahun lalu
dm-relationship-geldspende.ods bb4e2e654f spenden clean 4 tahun lalu
dm-relationship-sachleistung.ods 070945fb94 first commit 4 tahun lalu
dm-relationship-sachspende.ods 070945fb94 first commit 4 tahun lalu
dm-relationship-sponsoring.csv abd8555650 header 4 tahun lalu
dm-relationship-sponsoring.ods abd8555650 header 4 tahun lalu
dm-relationship-stipendium.ods 070945fb94 first commit 4 tahun lalu
dm-reliationsship.ods 070945fb94 first commit 4 tahun lalu
dm-unis.csv 42942e4ca0 cleaning 4 tahun lalu
dm-unis.ods 070945fb94 first commit 4 tahun lalu
notes.org 070945fb94 first commit 4 tahun lalu
prepare.py 070945fb94 first commit 4 tahun lalu
sponsoring-csv.csv 752efb11d0 cleaned 3 tahun lalu
sponsoring.csv 8c9942e5db big reformat 3 tahun lalu

README.org

Begin here for the data https://github.com/netAction/hochschulwatch/blob/gh-pages/import/daten/sponsoring.csv Sponsoring

The reast is in the parrent folder daten

Cypher


LOAD CSV FROM '/home/s0/Code/Projects/OSI/graphsForSpenders/dm-unis-unique.csv' AS line;
CREATE (:Uni { name: line[1] });

WITH "/home/s0/Code/Projects/OSI/graphsForSpenders/" AS base
WITH base + "dm-unis-unique.csv" AS uri
LOAD CSV WITH HEADERS FROM uri AS row
MERGE (:uni {id: row.id})

WITH base + "dm-relationship-geldspende.csv" AS uri
LOAD CSV WITH HEADERS FROM uri as row
MERGE (source:Geber {id: row.src})
MERGE (destination:Uni {id: row.dst})
MERGE (source)-[:MONEY_GRANT {year: row.year, sum: row.sum, source:row.source explanation:row.expl} ]-> (destination)

WITH "https://notabug.org/ProTransparenz/spending2graphs/raw/master/" AS base
WITH base + "dm-relationship-geldleistung.csv" AS uri
LOAD CSV WITH HEADERS FROM uri as row
MERGE (source:Geber {id: row.src})
MERGE (destination:Uni {id: row.dst})
MERGE (source)-[:MONEY_GRANT {year: row.year, sum: row.syn} ]-> (destination)

https://notabug.org/ProTransparenz/spending2graphs/raw/master/dm-relationship-geldspende.csv

state;dst;year;src;rel;art;wert;note;alt;src

Bundesland Universität Jahr Name des Gebers Geld-/Sachspende Art der Leistung Wert Hinweis Alternativname Quelle


WITH "https://notabug.org/ProTransparenz/spending2graphs/raw/master/" AS base
WITH base + "sponsoring.csv" AS uri
LOAD CSV WITH HEADERS FROM uri as row with row where row.src is not null where row.dst is not null
MERGE (source:Geber {id: row.src, state:row.state})
MERGE (destination:Uni {id: row.dst})
MERGE (source)-[:MONEY_GRANT {year: row.year, value: row.value, type:row.rel, art:row.art, alt:row.alt, source:row.source}]-> (destination)