Giter Site home page Giter Site logo

project-template's Introduction

Irish Constituencies Neo4j Database

Padraic Wade, G00314523

Introduction

A database for the neo4j project using the community edition to sort and catagorise the canditates for the irish general election.

Database

My data was collected from a online database hosted by storyful, the link is in the refernece. The data was then cleaned, sorted and uploaded to neo4j but sadly errors still remained.

Queries

Summarise your three queries here. Then explain them one by one in the following sections.

Counting genders and sorting errors

This query retreives the number of each gender and shows that the storyful database has some errors.

MATCH (n)
RETURN n.gender, COUNT(*)

count amounts in earch party

This query retreives the amount pf people in each party

MATCH (n)
RETURN n.party_name, COUNT(*)

List email addresses

This query retreives the email addresses of the canditates

MATCH (n) WHERE has(n.email) RETURN DISTINCT "node" as element, n.email AS email LIMIT 500 UNION ALL MATCH ()-[r]-() WHERE has(r.email) RETURN DISTINCT "relationship" AS element, r.email AS email LIMIT 25

References

  1. Neo4J website, the website of the Neo4j database.
  2. https://github.com/storyful/irish-elections the storyfuls database of candidates from the election (csv file contained in github)

project-template's People

Contributors

padmick avatar ianmcloughlin avatar

Watchers

James Cloos 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.