Tracking politicians like bugs. Citizen Intelligence Agency is independent and non-partisan voluntary project.
Using Statistical Machine Intelligence and Learning Engine and Business Rules Management System to track politicians.
Visualize political activity in Sweden, present key performance indicators and metadata for the actors on national level.
Still prototype, live demo running at https:/www.hack23.com/cia/.
Using open data from http://data.riksdagen.se/ , http://www.val.se/ and http://data.worldbank.org/ .
Currently the application displays data, metadata and charts for data related to Swedish parliament and government. Covering parliament members, committees, documents, ballots, decisions, ministries, government members and political parties.
Limited functionality proper navigation, descriptions,content, ui and styling are still not in place.
Plan to make it public some time after 2022.04, running Ubuntu 12.04, Postgresql 14.x, JDK17+, Spring framework 6.x , Hibernate 6.x, Vaadin 8.x
#Resources
Project documentation http://hack23.github.io/cia/
Project Architecture http://hack23.github.io/cia/architecture.html
Project Architecture(old) https://structurizr.com/share/37264#Enterprise
Github source code location https://github.com/Hack23/cia
Build server, jenkins https://www.hack23.com/jenkins/
QA report, sonarqube https://www.hack23.com/sonar/
Repository manager, nexus https://www.hack23.com/nexus/
https://en.wikipedia.org/wiki/Parliamentary_informatics list many good examples of other projects in the domain around the world.
Canada http://OpenParliament.ca
European Union http://www.votewatch.eu/
Sweden http://govdata.se/api
Denmark http://www.hvemstemmerhvad.dk/
Finland http://kansanmuisti.fi/
Norway https://www.holderdeord.no/
UK https://www.theyworkforyou.com/ http://www.publicwhip.org.uk/
Germany http://offenesparlament.de
Italy http://parlamento17.openpolis.it/
France https://www.nosdeputes.fr/
Colombia http://www.congresovisible.org/
Jordanian http://www.jpm.jo/
South Korea http://pokr.kr/
Israel https://oknesset.org/
Docker repository : https://hub.docker.com/r/hack23/cia/
-
docker run hack23/cia:2021.7.20 -p 28443:8443
-
Access server at https://localhost:28443/cia/ , register new user to get admin access
Currently only build a debian package, works with debian and ubuntu 20.4+
- Installing database(postgres) and openjdk
$ sudo apt-get install openjdk-16-jdk postgresql-13 pgadmin3
- Installing Postgresql on Ubuntu
$ sudo apt-get install postgresql-13 postgresql-contrib postgresql-13-pgaudit
- Create empty database
Below description set the default username/password and database name used for development, recommend using custom credentials and update the configuration at /opt/cia/webapps/cia/WEB-INF/database.properties to define your own username/password and database name.
$ sudo su - postgres
$ psql
postgres=# CREATE USER eris WITH password 'discord';
postgres=# CREATE DATABASE cia_dev;
postgres=# GRANT ALL PRIVILEGES ON DATABASE cia_dev to eris;
- Modify postgres setting, enable prepared transactions and extensions used pg_stat_statements, pgaudit, pgcrypto
Edit file "/etc/postgresql/13/main/postgresql.conf" set
max_prepared_transactions = 100
shared_preload_libraries = 'pg_stat_statements, pgaudit, pgcrypto'
pgaudit.log = ddl
pg_stat_statements.track = all
pg_stat_statements.max = 10000
- Modify postgres setting Edit file "/etc/postgresql/13/main/pg_hba.conf" add line
host all all ::1/128 md5
- Restart postgres
$ service postgresql restart
- Get cia debian package and
$ wget https://oss.sonatype.org/content/repositories/releases/com/hack23/cia/cia-dist-deb/2021.7.20/cia-dist-deb-2021.7.20.deb
- Install debian package
$ sudo dpkg -i cia-dist-deb-2021.7.20.deb
- Access the server at https://localhost:28443/cia/ .