This repository contains code for importing data from Riksdagen to Wikidata. To run the code in this repo, you need to setup authentication as per https://github.com/SuLab/WikidataIntegrator. See the test.ipynb
notebook to get started.
There are four main functions:
extract_docs
downloads documents from the Riksdagen API.prepare_docs
takes the raw documents and does some basic cleaning, returning aDocumentCollection
.transform_docs
takes theDocumentCollection
and returns a list of WikidataIntegrator items ready to be loaded to Wikidata.load_docs
loads the prepared and transformed documents to Wikidata.
MotionPropositionInterpellationSkriftlig fråga- Protokoll
- Utskottsbetänkande
- Utredningsbetänkande
- Kommittédirektiv
- Lag