Coder Social home page Coder Social logo

european-nations-warlikeness-wiki's Introduction

European nations warlikeness by Wikipedia.EN

About: This is a one-day project inspired by this answer on Quora. It provided interesting information from one sociological study:

Professor Quincy Wright offers this further statistical evidence for the same period, that is, 1480-1940:

Of the 278 wars involving European states during this period, the percentage of participation by the principal states was: England, 28; France, 26; Spain, 23; Russia, 22; Austria, 19; Turkey, 15; Poland, 11; Sweden, 9; Netherlands, 8; Germany (Prussia), 8; Italy (Savoy-Sardinia), 9; and Denmark, 7.

As anybody can see, there are no nation among the others that significantly was more addicted to wars. I try to find the full text of original quote in public acess and failed, so I wonder to check it by my own. I notice that Wikipedia has special page listing every conflict in Europe with information about it belligerents and all I need to do is to parse the list and count countries.

New tech background: I want to try in action Dbpedia with SPARQL queries and html parsing in python via BeautifulSoup (eh, weird name).

Troubles:

  1. SPARQL is tricky and confused. Due to huge amount of time for understanding it and lack of data in Dbpedia I realize that easiest way will be to crawl and parse wiki by myself.
  2. it is not obvious, how to count data properly for countries with several names (e.g. England equals Great Britain equals British Empire equals United Kingdom etc). I came up with few possible solutions started with manually write dictionary for synonym country's names. And it works. Second solution was to use wikipedia flag icon, that stands the same for many different country names. The last one was to use List of alternative country names that I wasn't make.
  3. assumptions in counting throw different names and equality between wars (e.g. small vs huge, short vs long)

Results: The result is quite similar to Wright's data and different at the same time. Both sets suggest that there is no nation in Europe that significally more often involved in wars comparatively to others. The differences are in numbers and in positions inside top-12 countries. I suppose that it is true because of manual data collection and moving off negligible conflicts from discussion in previous study. Also small bias may be related to my treatment of name synonyms.

Country #Wars
Denmark 15
Sweden 17
Poland 20
Netherlands 21
Austria 23
Spain 26
Italy 36
England 37
Russia 39
France 39
Germany 44
Turkey 46

european-nations-warlikeness-wiki's People

Contributors

amarchuk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.