Skip to content

Commit

Permalink
💚 eu_stateaid
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Jun 4, 2024
1 parent 445e184 commit bebd293
Showing 1 changed file with 64 additions and 14 deletions.
78 changes: 64 additions & 14 deletions datasets/eu_stateaid/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,86 @@ publisher:
url: https://webgate.ec.europa.eu/competition/transparency/public
extract:
sources:
- uri: ./20240208-eu-stateaid.csv
- uri: ./20240208-eu-stateaid.csv.gz
stream: false
pandas:
read:
options:
sep: ","
encoding: latin
compression: gzip
dtype: str
skiprows: 1
operations:
- handler: DataFrame.rename
options:
columns:
"20240208-eu-stateaid.csv": Country
transform:
queries:
- entities:
org:
payer:
schema: PublicBody
key_literal: eu-stateaid-authority
keys:
- Country
- Granting Authority Name
- Granting Authority Name [EN]
properties:
country:
column: Country
name:
columns:
- Granting Authority Name
- Granting Authority Name [EN]
beneficiary:
schema: LegalEntity
key_literal: eu-stateaid-beneficiary
keys:
- "National ID"
properties:
name:
columns:
- "Name of the beneficiary"
- "Name of the beneficiary [EN]"
sector:
column: "Sector (NACE)"
country:
column: "Another Beneficiary Member State"
payment:
schema: Payment
key_literal: eu-stateaids
key_literal: eu-stateaid-payment
keys:
- "Ref-no."
properties:
transactionNumber:
column: "Ref-no."
programme:
columns:
- "Aid Instrument"
- "Aid Instrument [EN]"
purpose:
columns:
- "Objectives of the Aid"
- "Objectives of the Aid [EN]"
summary:
columns:
- "Aid Measure Title"
- "Aid Measure Title [EN]"
- "Aid Measure Title"
- "Aid Measure Title [EN]"
date:
column: "Date of granting"
format: "%d/%m/%Y"
beneficiary:
columns:
- "Name of the beneficiary"
- "Name of the beneficiary [EN]"
- "Nationl ID"
- "Sector (NACE)"
entity: beneficiary
payer:
entity: payer
currency:
column: "Currency"
amount:
column: "Nominal Amount, expressed as full amount"
columns:
- "Nominal Amount, expressed as full amount"
- "Aid element, expressed as full amount"

load:
fragments_uri: postgresql:///ftm

aggregate: false
# aggregate:
# handler: investigraph.logic.aggregate:in_db

0 comments on commit bebd293

Please sign in to comment.