All Projects → Grasia → WikiChron

Grasia / WikiChron

Licence: AGPL-3.0 license
Data visualization tool for wikis evolution

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to WikiChron

Data science blogs
A repository to keep track of all the code that I end up writing for my blog posts.
Stars: ✭ 139 (+631.58%)
Mutual labels:  time-series, graphs, datascience
Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (+35731.58%)
Mutual labels:  time-series, graphs, plot
lovelace-plotly-graph-card
Highly customisable Lovelace card to display interactive graphs. Brings scrolling, zooming, and much more!
Stars: ✭ 38 (+100%)
Mutual labels:  graphs, history
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+12194.74%)
Mutual labels:  graphs, plot
Mediawiki
🌻 The collaborative editing software that runs Wikipedia. Mirror from https://gerrit.wikimedia.org/g/mediawiki/core. See https://mediawiki.org/wiki/Developer_access for contributing.
Stars: ✭ 2,752 (+14384.21%)
Mutual labels:  wiki, wikimedia
Unix History Repo
Continuous Unix commit history from 1970 until today
Stars: ✭ 4,851 (+25431.58%)
Mutual labels:  evolution, history
SwiftCharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,405 (+12557.89%)
Mutual labels:  graphs, plot
Wikipedia Mirror
🌐 Guide and tools to run a full offline mirror of Wikipedia.org with three different approaches: Nginx caching proxy, Kimix + ZIM dump, and MediaWiki/XOWA + XML dump
Stars: ✭ 160 (+742.11%)
Mutual labels:  wiki, datascience
Covid19 Dashboard
🦠 Django + Plotly Coronavirus dashboard. Powerful data driven Python web-app, with an awesome UI. Contributions welcomed! Featured on 🕶Awesome-list
Stars: ✭ 100 (+426.32%)
Mutual labels:  plot, datascience
Mycodo
An environmental monitoring and regulation system
Stars: ✭ 936 (+4826.32%)
Mutual labels:  time-series, graphs
Covid 19 Germany Gae
COVID-19 statistics for Germany. For states and counties. With time series data. Daily updates. Official RKI numbers.
Stars: ✭ 114 (+500%)
Mutual labels:  time-series, history
Unix History Make
Code and data to create a git repository representing the Unix source code history
Stars: ✭ 258 (+1257.89%)
Mutual labels:  evolution, history
citylines
Citylines.co is a collaborative platform for mapping the transit systems of the world!
Stars: ✭ 53 (+178.95%)
Mutual labels:  evolution, history
sr graph
A simple, one-file, header-only, C++ utility for graphs, curves and histograms.
Stars: ✭ 67 (+252.63%)
Mutual labels:  graphs, plot
ofxHistoryPlot
Visualize value history on a configurable graph
Stars: ✭ 40 (+110.53%)
Mutual labels:  history, plot
Wikiteam
Tools for downloading and preserving wikis. We archive wikis, from Wikipedia to tiniest wikis. As of 2020, WikiTeam has preserved more than 250,000 wikis.
Stars: ✭ 404 (+2026.32%)
Mutual labels:  wiki, dump
HackyHourHandbook
A handbook for those who want to start coordinating Hacky Hour events in their University/Institute
Stars: ✭ 43 (+126.32%)
Mutual labels:  datascience, research-tool
Ggstatsplot
Enhancing `ggplot2` plots with statistical analysis 📊🎨📣
Stars: ✭ 1,121 (+5800%)
Mutual labels:  plot, datascience
discord-wiki-bot
Wiki-Bot is a bot with the purpose to easily search for and link to wiki pages. Wiki-Bot shows short descriptions and additional info about the pages and is able to resolve redirects and follow interwiki links.
Stars: ✭ 69 (+263.16%)
Mutual labels:  wiki, wikia
Plotjuggler
The Time Series Visualization Tool that you deserve.
Stars: ✭ 2,620 (+13689.47%)
Mutual labels:  time-series, plot

WikiChron

WikiChron is a web tool for the analysis and visualization of the evolution of wiki online communities.

It analyzes the history dump of a wiki and give you nice graphs plotting that data.

Development

Install

Dependencies

Install instructions

Tkinter

If you are using Linux (and probably Mac OS X too), likely you will need to manually install the tkinter utility. You can check if tkinter is already installed in your system by following these instructions.

To install it, if you are in Ubuntu or derivatives you can use this command:

sudo apt-get install python3-tk

If you are using pyenv, you should follow the instructions posted in this answer of stack overflow.

igraph

The dependency python-igraph needs to compile some C code, so, in order to install it, you priorly need some dev libraries for python, xml, zlib and C compiler utilities.

For Ubuntu 18.04 (bionic) or newer versions you can directly install igraph for python3 with:

sudo apt-get install python3-igraph

For older versions of Ubuntu (16.04 and derivatives), you need to install the following dependencies prior to be able to compile and install igraph with pip:

sudo apt-get install build-essential python3-dev libxml2 libxml2-dev zlib1g-dev

Other deps

After that, simply run: pip3 install -r requirements.txt. pip will install all the remaining dependencies you need.

In case of versions of linux where igraph for python3 is not available in your package manager, you need to use the requirements file which includes the igraph package in order to be built and installed with pip: pip3 install -r requirements+igraph.txt

Using a virtual environment

A good pratice is to use a virtual environment in order to isolate the development environment from your personal stuff. This skips issues about having different Python versions, pip packages in the wrong place or requiring sudo privileges and so on.

In order to do this, first install virtualenv, either from your package manager or from pip.

Then, create a new virtual environment in the repo root folder with: virtualenv -p python3 venv/

Activate the virtual environment: source venv/bin/activate

And finally, install dependencies here: pip install -r requirements.txt

Input wiki data

Likely, the source data for wikichron will come from a XML file with the full edit history of the wikis you want to analyze. Go here if you want to learn more about Wikimedia XML dumps.

In order to get such XML dump, you can follow the instructions explained in the WikiChron's wiki.

Process the dump

Secondly, you'll need to convert that xml raw data into a processed csv that WikiChron can load and work with.

For that transformation, you should use our wiki-dump-parser script. You can find a short guide on how to use this script in this page of the WikiChron's wiki.

Provide some metadata of the wiki

Wikichron needs one last thing in order to serve the visualization of a wiki for you.

You need to have a wikis.json file in your data_dir/ directory with some metadata of the wikis you want to explore; like the number of pages, the number of users, the user ids of the bots, etc.

You can find some helpful instructions on how to edit or automatically generate this file using a script in this page of the WikiChron's wiki.

Run the application

Use: python3 -m wikichron or python3 wikichron/app.py

The webapp will be locally available under http://127.0.0.1:8880/app/

Optionally, you can specify a directory with the csv data of the wikis you want to analyze with the environment variable: WIKICHRON_DATA_DIR.

For instance, suppose that your data is stored in /var/tmp, you might launch wikichron using that directory with:

WIKICHRON_DATA_DIR='/var/tmp' python3 wikichron/app.py

It will show all the files ending in .csv as wikis available to analyze and plot.

Development environment

To get errors messages, backtraces and automatic reloading when source code changes, you must set the environment variable: FLASK_ENV to 'development', i.e.: export FLASK_ENV=development prior to launch app.py.

There is a simple but handy script called run_develop.sh which set the app for development environment and launches it locally.

You can get more information on this in the Flask documentation.

Deployment

The easiest way is to use Docker.

Otherwise, follow the Dash instructions: https://plot.ly/dash/deployment and inspect the deploy.sh script, which launches the app with the latest code in master and provides the appropriate arguments. Check it out and modify to suit your needs.

gunicorn config

For the deployment you need to set some configuration in a file called gunicorn_config.py.

You can start by copying the sample config file located in this repo and then edit the config parameters needed to suit your specific needs:

cp sample_gunicorn_config.py gunicorn_config.py

The documentation about the gunicorn settings allowed in this file can be found in the official gunicorn documentation.

The environment variable WIKICHRON_DATA_DIR is bypassed directly to WikiChron and sets the directory where WikiChron will look for the wiki data files, as it was explained previously in the Run the application section.

Setup cache

If you want to run WikiChron in production, you should setup a RedisDB server and add the corresponding parameters to the cache.py file.

Look at the FlaskCaching documentation for more information about caching.

Flask deployment config

This webapp use some configurable parameters related to the Flask instance underneath. Those paramenters are such as hostname, port and ip address for the cache and need to be set in a file called "production_config.cfg" which should be located inside the directory called "wikichron". An example of the values for those parameters are in the file called "sample_production_config.cfg". So simply copy that file and edit them accordingly:

cp wikichron/sample_production_config.cfg wikichron/production_config.cfg

Docker

You can use Docker to deploy WikiChron. The sample configurations are already set to use get the docker compose working smoothly.

Just copy the sample config files to the appropriate names (as explained above) and run:

docker-compose up

This will start up the wikichron webserver as well as a redis instance to use for the cache.

If, for any reason, you wanted to start a standalone docker instance for wikichron (without redis), you could use a command similar to this one:

docker run --mount type=bind,source=/var/data/wiki_dumps/csv,target=/var/data/wiki_dumps/csv -p 8080:8080 -it wikichron:latest

Third-party licenses

Font Awesome

We are using icons from the font-awesome repository. These icons are subjected to the Creative Commons Attribution 4.0 International license. You can find to the terms of their license here. In particular, we are using the following icons: share-alt-solid, info-circle

Modifications in font awesome icons

  • The file: share.svg is a modification of the share-alt-solid.svg file provided by fontawesome.

Publications

WikiChron is used for science and, accordingly, we have presented the tool in some scientific conferences. Please, cite us if you use the tool for your research work:

  • Abel Serrano, Javier Arroyo, and Samer Hassan. 2018. Webtool for the Analysis and Visualization of the Evolution of Wiki Online Communities. In Proceedings of the European Conference on Information Systems 2018 (ECIS '18). 10 pages.
  • Abel Serrano, Javier Arroyo, and Samer Hassan. 2018. Participation Inequality in Wikis: A Temporal Analysis Using WikiChron. In Proceedings of the 14th International Symposium on Open Collaboration (OpenSym '18). ACM, New York, NY, USA, Article 12, 7 pages. DOI: https://doi.org/10.1145/3233391.3233536.
  • Youssef El Faqir, Javier Arroyo, and Abel Serrano. 2019. Visualization of the evolution of collaboration and communication networks in wikis. In Proceedings of the 15th International Symposium on Open Collaboration (OpenSym '19). ACM, New York, NY, USA, Article 11, 10 pages. DOI: https://doi.org/10.1145/3306446.3340834
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].