GithubHelp home page GithubHelp logo

kartenkarsten / green-directory Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mehlukas/green-directory

0.0 1.0 0.0 598 KB

Structured data repository of Green Party organisations

License: Apache License 2.0

Python 92.81% Makefile 7.19%

green-directory's Introduction

Green Directory

Structured data repository of Green Party organisations

Goals

  • Enable applications in need of structured data regarding Green party organizations

  • Provide high quality, well maintained structured data

  • Allow for an open and transparent data maintenance workflow based on Github pull requests.

Help Wanted

This project needs help with:

  • Structured data imports: As soon as a schema is defined initially, we need help with importing data. Pull requests welcome!

Please also look at the issues for anything tagged with help wanted.

When in doubt, please file an issue to ask a question or report a feature wish.

Data Structure

  • YAML is used as a source format.

  • We try to avoid as much extra markup as possible (quotes, brackets)

  • We have a folder structure that helps humans to find relevant files, but which should not be read in a semantical fashion. The folder hierarchy can vary from country to country and from locality to locality. Likewise, data file names have no meaning.

  • YAML files have the ending .yaml.

  • All data files are lists of entries (starting with a --- line). Every file ends with a new line character.

  • The schema definition (attributes and permitted values) depends on the type of entry. See below for details.

Attributes

If not indicated otherwise, all attributes are of the type String.

  • type (mandatory): Type of the entry. Possible values:

    • PARTY: A political party, usually active in the entire country.
    • REGIONAL_CHAPTER - a subdivision of an organisation, usually assigned to a local territory.
    • COMMITTEE: A not locally assigned sub-group of a party organisation.
    • YOUTH_ORGANIZATION: A youth organization which is normally associated with a party.
    • SUB_ORGANIZATION: Some other sub-organization of a party.
    • PERSON: An individual with an important function (e.g. Member of Parliament).
    • PARLIAMENTARY_GROUP : A parliamentary group (german: Fraktion) of a political party in a city council or parliament.
  • level (mandatory, except for Members of the European Parliament). A sub-classification of an entry with type REGIONAL_CHAPTER. Possible values:

    • DE:BUNDESVERBAND
    • DE:LANDESVERBAND: A chapter belonging to a federal state in Germany. The "Land" (also known as "Bundesland") is the primary territorial subdivision of the Federal Republic of Germany. See https://en.wikipedia.org/wiki/States_of_Germany
    • DE:BEZIRKSVERBAND: A chapter belonging to more than one district. Mostly used in southern Germany. See https://de.wikipedia.org/wiki/H%C3%B6herer_Kommunalverband
    • DE:KREISVERBAND: A "Kreisverband" in Germany (DE), which is a regional chapter of the party belonging to a "Kreis", which is a kind of district. A "Kreis" is, in most German federal states, the primary administrative subdivision. See https://en.wikipedia.org/wiki/Districts_of_Germany
    • DE:REGIONALVERBAND: A chapter which is smaller than a "Kreisverband", but has (or could have) sub-chapters.
    • DE:ORTSVERBAND: A chapter belonging to a town or a part of a city
  • country (mandatory, except for Members of the European Parliament). Two-letter country code of the country the entry is active in, according to ISO 3166-1 alpha-2. Possible value:

    • DE for Germany
  • state (mandatory for every entry below "DE:BUNDESVERBAND"). Federal state or province the entry is active in. Please use the word that is common in the country, not the english translation. Examples:

    • Bayern for Bavaria
    • Nordrhein-Westfalen for North Rhine-Westphalia
  • district OR region OR city (mandatory for every entry below "DE:LANDESVERBAND"). district, region or city the entry is active in. Examples:

    • district for a "Kreisverband" (even if it is a "kreisfreie Stadt")
    • region for a "Regionalverband" or "Bezirksverband"
    • city for a "Ortsverband" (even if it is only a part of a city)
  • urls (mandatory). Contians one or more URLs for websites, social media account or other ressources. URLs are of the type Array

    • An URLs-Array has two parts:
      • type defines the following url. Often used (This list may be incomplete):
        • WEBSITE for the website of the entry
        • FACEBOOK for the Facebook-page of the entry
        • TWITTER for the Twitter-page of the entry
        • INSTAGRAM for the Instagram-page of the entry
        • MASTODON for the Mastodon-page of the entry
        • YOUTUBE for the Youtube-page of the entry
        • WIKIDATA for the url to the Wikidata-object. (The corresponding url will look like this: https://www.wikidata.org/wiki/Q49766)
      • url is a unique website adress. Must start with https:// or http://. If possible, use https:// and do not use www.. If the type is "WEBSITE", it should end with the character /.
  • emails (optional). Contains usually one email adress. Emails are of the type Array

    • An emails-Array has one part:
      • address defines the email contact information

For entrys of the type "Person", there are the following attributes (additionally to the above mentioned).

  • name (mandatory): Name the person is commonly known by, usually consisting of given and family name.

  • given_name (mandatory): The name usually given to the person by their parents. See https://schema.org/givenName

  • family_name (mandatory): The name usually also carried by other family members. See https://schema.org/familyName

Contributing

Pull requests with data corrections and contributions are welcome.

Please validate your data before submitting a pull request. To do this, run the following command in the terminal:

make validate

If the command runs without error notice, everything is fine.

green-directory's People

Contributors

atomaffe avatar ctr49 avatar deltachaos avatar dirkr avatar fishat64 avatar florianbieser avatar georgloesel avatar gerbsen avatar hejamu avatar kartenkarsten avatar kuecande avatar marians avatar martin-eberle avatar mehlukas avatar patrickhanft avatar redeye2063 avatar schiessle avatar svenseeberg avatar t3r avatar tmeigen avatar weissgruenbunt avatar

Watchers

 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.