Code Monkey home page Code Monkey logo

parliament-diagram-generator's Introduction

parliament-diagram-generator

Generate parliament diagrams using information from wikidata

Wikidata items for the members of parliament need to contain position held (P39) statements with all of the following qualifiers in order for the tool to work:

start time (P580)
end dates (P582)
parliamentary term (P2937)
parliamentary group (P4100)

In addition, for colours to appear on the chart, the item for the parliamentary group must have an sRGB color hex triplet (P465) statement. Items without this statement will appear in black.

parliament-diagram-generator's People

Contributors

teester avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

parliament-diagram-generator's Issues

Provide example parameters that give a result

It would encourage people to try this tool if the landing page provided an example of parameters that will generate a result. The placeholder text in the text boxes give no diagram.

Support "official color" property (P6364)

It would be nice if the tool would support the "official color" property (P6364) in addition to the sRGB triplet property (P465). The RGB triplet property, if present on the item, should still retain precedence (for the cases where the official color isn't specific enough), so this would be strictly an enhancement, a non-breaking change.

Here's an example for the Portuguese party Left Bloc: it has three values for "official color" (P6364), but the most specific one is marked as the preferred value; and that value does have the "sRGB color triplet" (P465) as a qualifier.

Add a link to this repository from the website

I had to dig a bit to find this repository, since the tool's page has no hints to help find it (e.g. mention of the author, link to the repo, etc.). It didn't help that there's a similarly-named tool (toolforge about page; github repository) around, by @slashme ๐Ÿ˜… (I wonder if it would make sense to combine efforts somehow, but I digress.)

A github ribbon, corner, icon in the footer, or simply a plain link to this repo, would be helpful to allow others to find it.

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.