All Projects → antverdovsky → Wiki Degrees

antverdovsky / Wiki Degrees

Licence: mit
Calculator for finding the degrees of separation and the shortest path between two Wikipedia articles.

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Wiki Degrees

Wikipedia Map
A web app for visualizing the connections between Wikipedia pages.
Stars: ✭ 302 (+2416.67%)
Mutual labels:  wikipedia
Wtf wikipedia
a pretty-committed wikipedia markup parser
Stars: ✭ 475 (+3858.33%)
Mutual labels:  wikipedia
Reality
Comprehensive data proxy to knowledge about real world
Stars: ✭ 795 (+6525%)
Mutual labels:  wikipedia
Adam qas
ADAM - A Question Answering System. Inspired from IBM Watson
Stars: ✭ 330 (+2650%)
Mutual labels:  wikipedia
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 (+3266.67%)
Mutual labels:  wikipedia
Wikipedia2vec
A tool for learning vector representations of words and entities from Wikipedia
Stars: ✭ 655 (+5358.33%)
Mutual labels:  wikipedia
Wikipediakit
Wikipedia API Client Framework for Swift on macOS, iOS, watchOS, and tvOS
Stars: ✭ 270 (+2150%)
Mutual labels:  wikipedia
Anon
tweet about anonymous Wikipedia edits from particular IP address ranges
Stars: ✭ 916 (+7533.33%)
Mutual labels:  wikipedia
Mwparserfromhell
A Python parser for MediaWiki wikicode
Stars: ✭ 440 (+3566.67%)
Mutual labels:  wikipedia
Wikiquiz
Generates a quiz for a Wikipedia page using parts of speech and text chunking.
Stars: ✭ 778 (+6383.33%)
Mutual labels:  wikipedia
Jivesearch
A search engine that doesn't track you.
Stars: ✭ 364 (+2933.33%)
Mutual labels:  wikipedia
Kiwix Android
Kiwix for Android
Stars: ✭ 390 (+3150%)
Mutual labels:  wikipedia
Dns Over Wikipedia
Redirect `.idk` domains using the official link found on a topic's Wikipedia page
Stars: ✭ 669 (+5475%)
Mutual labels:  wikipedia
Fel
Fast Entity Linker Toolkit for training models to link entities to KnowledgeBase (Wikipedia) in documents and queries.
Stars: ✭ 319 (+2558.33%)
Mutual labels:  wikipedia
Wikipediarelatedness
The Wikipedia Relatedness library
Stars: ✭ 18 (+50%)
Mutual labels:  wikipedia
Wit
WIT (Wikipedia-based Image Text) Dataset is a large multimodal multilingual dataset comprising 37M+ image-text sets with 11M+ unique images across 100+ languages.
Stars: ✭ 271 (+2158.33%)
Mutual labels:  wikipedia
Search Deflector
A small program that forwards searches from Cortana to your preferred browser and search engine.
Stars: ✭ 620 (+5066.67%)
Mutual labels:  wikipedia
Locator Tool
Tool to add {{Location}} or {{Object location}} to images on Wikimedia Commons
Stars: ✭ 11 (-8.33%)
Mutual labels:  wikipedia
Top
The daily list of Wikipedia's most-visited articles
Stars: ✭ 19 (+58.33%)
Mutual labels:  wikipedia
Listen To Wikipedia
Live, generative music from Wikipedia edits
Stars: ✭ 685 (+5608.33%)
Mutual labels:  wikipedia

WikiDegrees

WikiDegrees is a simple calculator for computing the path between any two Wikipedia articles. Given starting and ending articles, WikiDegrees computes the shortest path to reach the ending article by only clicking on the embedded links of the current article, starting from the starting article. This project is similar to, and is inspired by, the Oracle of Bacon project.

Installation

Compilation

Either fork or clone the repository and compile it using your preferred Java compiler. Note that WikiDegrees uses JSON data to compute the path and so the GSON API is required to run the program. A GSON exernal jar file can be acquired for here.

Demo

A simple executable demo is included in the repository if you do not wish to compile the program yourself. Clone or fork the repository and navigate into the root directory. Run the demo file from your terminal using:

java -jar wiki-degrees.jar

Note that the demo was compiled with Java 8 (JDK 1.8) and may not work on lower versions.

Usage

To open the calculator, simply run it from your terminal or IDE. WikiDegrees allows the use of the following command line arguments:

-t | Displays the time taken to compute the path.
-d | Displays useful debug information while the path is being computed.
-h | Displays the help for the program.

Once the program opens, you will prompted for the names of the starting and ending articles. Either enter the name of each article, or use %r to fetch a random article name. Once both article names are entered, the calculator will compute the path and display it when completed. The names of the links which can be navigated in order to trace the path will be displayed. On occasion, a link may be embedded in a Wikipedia article under a different name. If this occurs, the embedded name will be surrounded by brackets.

Example

To calculate the path between a random article and GitHub, we can run the program with the following inputs:

Enter starting article name: %r
Enter ending article name: GitHub

After the path is computed, we may get a path like this:

Searching for path between "Lembarg" and "GitHub"
Degrees of Separation: 4
Path: 
	Lembarg -> 
	Voivodeships of Poland [Voivodeship] -> 
	Encyclopædia Britannica -> 
	IPhone -> 
	GitHub

In this case, the random article Lembarg was chosen, and the path between it and GitHub was computed. The path can now be traced by navigating from each article in the path to the next. Note that the Lembarg does not contain the article Voivodeships of Poland, but rather just Voivodeship, as indicated by the brackets. Note that this is just one possible path of many. While all paths are always the shortest possible, there may be different paths of the same number of degrees of separation.

Remarks

The calculator works on the live version of Wikipedia articles and therefore an active internet connection is required in order to compute the path. A high speed internet connection is strongly recommended since the majority of the path computation time is spent fetching data from Wikipedia. It is still a work in progress and requires some more optimizations to bring down the time taken to find a path. Currently, most paths are computed in 30 seconds or less, though some may take as long as 100 seconds. This project is not associated with Wikipedia or the Wikimedia Commons repository in any way. Please do not use this project to cheat on The Wiki Game :-).

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].