Political Memory Software

==This is the old version of the Political Memory, we don't use it anymore, the source of the new version are here: https://gitorious.org/memopol2-0 the instance here: https://memopol.lqdn.fr/ and the bug tracker system here: https://projets.lqdn.fr/projects/mempol==

 WE DON'T USE THIS VERSION OF MEMOPOL ANYMORE 

Political Memory: Implemented Software Framework
Pages on this wiki related to Political Memory are based upon a Berkeley DB XML database (BDB XML). Some Perl scripts are run to create this database, to extract informations from this database in order to create wiki pages, or to update this database from updates made on the wiki pages. Hence these wiki pages can be viewed as a frontend to this database. However there is no real time synchronizations between the database and the wiki pages. Updates of the wiki from the database, and conversely, are frequently made in a semi-automatic way.

The directory tree, and Perl scripts can be downloaded freely, as well as the following dumps of BDB XML 'containers'':
 * container for MEPs
 * container for the votes

All scripts are licensed under GNU General Public License version 3 or higher.

Database Setup

 * Untar directory tree tarball
 * Download Berkeley DB XML.
 * Install BDB XML with Perl support
 * Untar dumps of the database:
 * Load the following containers from this tarball:
 * container for MEPs:
 * container for the votes :
 * container for MEPs:
 * container for the votes :

You can access to this database with shell provided by BDB XML (see tutorial) or by writing your own programs in C++, Java, Perl, Python, PHP or Tcl. Of course, the Perl scripts described below can be use as examples.

Scripts Descriptions
Informations about command line arguments and options of each script are described by simply passing the option  (or  ).

Les scripts Perl sont simplement installés en décompressant leur archive

Database Initialization

 * : Fetch all MEPs' informations from the European Parliament website. Every MEP's informations are saved into an XML file, MEPs' pictures are also downloaded.
 * : From a text file produced with a copy/paste from the PDF file listing rollcall votes at the European Parliament, produce the corresponding XML file. The XML file should then be completed by hand to add some descriptions of amendments, voting recommendations, etc.

Database Update

 * : Load XML files passed as arguments into a BDB XML container.
 * : Update a MEP's opinions from her wiki page into a BDB XML container.
 * : update MEPs' voting results into a BDB XML container.

Wiki Pages Extraction

 * : Create wiki pages for all MEPs from a BDB XML container.
 * : Create the wiki page for a MEP from a BDB XML container.
 * : Create wiki pages related to a vote from a BDB XML container.

Searching Wiki Pages Creation

 * : Create wiki page listing MEPs by alphabetical order from an XQuery query.
 * : Create wiki page listing MEPs by country from an XQuery query.
 * : Create wiki page listing MEPs by political group from an XQuery query.
 * : Create wiki page listing MEPs by committee from an XQuery query.
 * : Create wiki page listing MEPs by office from an XQuery query.

Wiki Pages Update

 * : upload wiki pages passed as arguments.
 * : upload pictures passed as arguments.