Home

Awesome

This repository contains code to build cosponsorship networks from bills passed in the lower and upper chambers of the Italian Parliament.

HOWTO

Replicate by running make.r in R. The data.r script will run two different scripts to download the sponsors from both chambers, followed by the bills (disegni di legge) that they have cosponsored in each legislature. The data for the lower chamber are collected via the SPARQL endpoint of its open data portal.

The data-ca.r script has been set to collect bills for legislatures 9-17 of the lower chamber. The start parameter found at the top of the script can be decreased to any value down to 1 to collect additional data.

The build.r script then assembles the edge lists and plots the networks, with the help of a few routines coded into functions.r. Adjust the plot, gexf and mode parameters to skip the plots or to change the node placement algorithm.

DATA

Bills

Sponsors

NOTE

Italy has a strict distinction between first author(s) (prima firmatori) and cosponsor(s) (cofirmatori), and there is, in a limited number of cases from the Senate, multiple first authors, with or without cosponsors. This means that the cosponsorship graphs might contain two kinds of directed ties:

In order to keep things comparable across countries, it is probably best to treat only the first "first author" as such, and then treat all other sponsors as cosponsors. Adding mutual ties between first authors only marginally increases the density of the graphs.

THANKS

Thanks to Jeroen Ooms, who helped with a previous version of the code by providing a trick to work with the misconfigured cache server of the Senato website.