Code Monkey home page Code Monkey logo

verkehrswende_railway's Introduction

Verkehrswende_railway

This repo is part of an academic working paper on ecological transitions in the transport sector, focusing on the railway infrastructure.

Example graph of a Streamgraph This is an example plot from the analysis, displaying key terms in the accounting documents of the German railway company Deutsche Bahn.

You can find the main code, documents, and plots attached.

Code

The files are used for the twitter and document analysis. Most files are shipped as Jupyter notebooks. However, the streamgraph was created through R.

Queries

The queries used for Twitter and the document analysis are key. So here are the major selectors in a nutshell:

Twitter

  • Verkehrswende: 'Verkehrswende OR Mobilitätswende -is:retweet',
  • 9-Euro-Ticket: '9euroticket OR 9EuroTicket OR 9-Euro-Ticket OR 9-Euroticket OR Neun-Euro-Ticket OR Neuneuroticket OR 9€-Ticket'

Regex functions to select mobility forms:

  • Railway: '(?i)\sbahn|Bahn|DB\s|Güterverkehr|Güterverkehr|Schiene|schiene|Schienengüterverkehr|Fernverkehr|Nahverkehr|Cargo|Züge|Zug\s'
  • E-Mobility: '(?i)Elektromobilität|Elektroautos|Elektroauto|Elektroantrieb|EAuto|E-Auto|Emobilität|E-Mobilität|Elektromobil|Elektrofahrzeug'
  • Cycling: '(?i)Radverkehr|Fahrradverkehr|Fahrradfahren|Fahrrad|Radfahren|radeln|\srad\s'
  • Regional transport: '(?i)öpnv|oepnv|öffentlicher Personennahverkehr|oeffentlicher Personennahverkehr|Nahverkehr'

Party-selection for the 9EuroTicket analysis:

  • '((?i)grüne\s|grüne-|die_gruene|die_grünen|gruenen|bündnis\s90|die\sgrünen|die_gruenen',
  • '(?i)^((?!nofdp|noafdp).)$|fdp\s|fdp-|fdpbt|freie\sdemokraten|freien\sdemokraten' # This catches a few christian organisations,
  • '(?i)^((?!nocdu|Skandale).)$|(\scdu\s|cdu-|union-|\sunion\s|christlich\s|christliche\s|CDUCSUBT|csu)',
  • '(?i)spd\s|spd-|sozialdemokrat-|sozialdemokrat\s|sozialdemokratie\s|sozialdemokraten|\ssozi\s|\ssoze\s'

Report word groups

The accounting/report documents by Deutsche Bahn searched for work groups. These are the words searched for via regex:

  • Verkehrswende = r'(?i)verkehrsw|mobilitätsw|verkehrsverl'
  • Digital = r'(?i)digi'
  • Nachhaltigkeit = r'(?i)nachha|sustaina'
  • Ökologie = r'(?i)(?=(öko|umwelt|natur))(?!(ökonomi|naturgemäß|natürlich))'
  • Verspätung = r'(?i)verpät|pünktl'
  • Energie = r'(?i)energie|strom|solar|sonnenen|winde|strom|kohle|gas|erneuerbare|astroms'
  • Klima = r'(?i)klima|co2|kohlenstoffdioxid|climate|carbon|treibhausg'
  • Reform = r'(?i)reform|restruktur'
  • Obsoleszenz = r'(?i)obsoleszenz|repar|schaden|instandh|störung|instandse|stillstand|baustell|sani|renovi|mainten|wiederaufb|ausbess|veraltet'
  • Wettbewerb = r'(?i)wettbe|konkurr|marktfü'

Documents

These are key file created by the document analyses.

Plots

All plots created by the software code is included here. As a bonus graph, the comparison of Verkehrswende and Verkehrssicherheit is attached.

verkehrswende_railway's People

Contributors

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