{"id":21485180,"url":"https://github.com/sarabdevops/neo4j-project","last_synced_at":"2025-06-25T13:05:34.174Z","repository":{"id":228053195,"uuid":"321820928","full_name":"sarabDevOps/Neo4j-Project","owner":"sarabDevOps","description":"Neo4j project with all constituencies of IRELAND and their members in the database .","archived":false,"fork":false,"pushed_at":"2020-12-16T01:21:15.000Z","size":219,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T17:50:40.653Z","etag":null,"topics":["cypher","cypher-query-language","neo4j","neo4j-database","neo4j-graph","neo4j-graphaware-framework"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarabDevOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"supports/RelationShipQueryforAllConstituencies.txt","governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-16T00:09:58.000Z","updated_at":"2020-12-16T01:21:17.000Z","dependencies_parsed_at":"2024-03-16T18:56:19.881Z","dependency_job_id":"dab5253f-60c0-4c9f-8f57-7259a81c3208","html_url":"https://github.com/sarabDevOps/Neo4j-Project","commit_stats":null,"previous_names":["sarabdevops/neo4j-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sarabDevOps/Neo4j-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarabDevOps%2FNeo4j-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarabDevOps%2FNeo4j-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarabDevOps%2FNeo4j-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarabDevOps%2FNeo4j-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarabDevOps","download_url":"https://codeload.github.com/sarabDevOps/Neo4j-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarabDevOps%2FNeo4j-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261879306,"owners_count":23223738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cypher","cypher-query-language","neo4j","neo4j-database","neo4j-graph","neo4j-graphaware-framework"],"created_at":"2024-11-23T13:14:23.630Z","updated_at":"2025-06-25T13:05:34.154Z","avatar_url":"https://github.com/sarabDevOps.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neo4j-Project\n\n\n##  Professor - Dr IAN McLOUGHLIN\n\n#### The project is made for as a part of college work , Module GRAPH THEORY .\n\n#### Neo4j \n![](https://github.com/sarabDevOps/Neo4j-Project/blob/main/neo4j.JPG)\nNeo4j is the world's leading open source Graph Database which is developed using Java technology. It is highly scalable and schema free (NoSQL).\n\nA graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. It is composed of two elements - nodes (vertices) and relationships (edges).\n\nGraph database is a database used to model the data in the form of graph. In here, the nodes of a graph depict the entities while the relationships depict the association of these nodes.\n\n### Database\n\nTo create this Database all the information is retrieved from the Wikipedia , The nature of datbase is each and every node is created sepretly and each and every single node represents either a county or a members , so there is 40 consituencies is in Ireland so there is all together 40 nodes in the database which represents all the consituencies of ireland.\n\n### Querie Shows how to create the node in database which represents a consituency Carlow–Kilkenny.\n\n\n```\n     CREATE ( CarlowKilkenny : constituencies {Name : \"Carlow–Kilkenny\" })\n```\n\n### Querie Shows how to create the node in database which represents a each member of Carlow–Kilkenny.\n\n\n```\n    CREATE \t(CarlowKillkenny1 : candidate_CK { Name : \"John McGuiness\", Gender : \"Male\" , Age : 40 , \n\n    PartyName : \"FiannaFail\",\tTotalVotes : 11903\t,County : \"Carlow–Kilkenny\"\t,Win : \"Yes\"\t})\n\n    \n```\n\n### Querie Shows how to create a relationship between the given candidate with the given county .\n\n```\n    MATCH (u:constituencies {Name:\"Carlow–Kilkenny\"}), (r:candidate_CK) \n\n    CREATE (u)-[:Ran_IN_Election]-\u003e(r)\n\n```\n\nAbove query shows how to create a relationship between constituency name Carlow–Kilkenny with the all the candidate of that constituency, \nfirstly we have to match the nodes together in datbase , For eg in the constituencies match a node name called Carlow–Kilkenny and match a another node in that candidate_CK and make a relationship between them and give a relationship name called a Ran_IN_Election.\n\n### Quickstart\n\nFirst, you need to have a local Neo4j running. The easiest way is Docker. If you have a docker installed locally, than please run .\n\n```\n     docker run --publish=7474:7474 --publish=7687:7687 -e 'NEO4J_AUTH=neo4j/secret' neo4j:4.1\n     \n```\nAnother option is to use Neo4j desktop, which can be downloaded from here: http://neo4j.com/download. If you chose that way, install and start as instructed by the desktop application. You need to start a new database inside desktop.\n\n1.  After you have Neo4j up and running, open up a browser and goto http://localhost:7474. Enter the credentials (neo4j:secret if you chose the Docker approach above                         or the credentials you supplied in Neo4j Desktop). \n\n2. click and run the Cypher statement to insert the dataset .\n\n3. Clone this project from GitHub.\n\n###  Queries Walkthrough\n\n```\n     MATCH\n\t       (n)\n     RETURN\n\t        n;\n\n```\n\nThis query Will Shows whats actually exixts in database and how is the structure of database. \nIn terms of relationship with all of the members of the given county .\n\n\n### This query will show a user that how many nodes are in the databse It will count a total number of nodes .\n\n```\n\n     start n=node(*)\n\t\n\tmatch (n)\n\t\n\treturn count(n)\n\n\n```\n\n### This query will Get the number of female members were there in county kerry, who run in election With there names and age .\n\n\n```\n\n     MATCH(a:constituencies{Name : \"Kerry\"})-[:Ran_IN_Election]-\u003e \n\t\n\t(b:candidateKerry)\n\t\n\tWHERE b.Gender = \"Female\"\n\t\n\tRETURN b.Name , b.Age;\n\n```\n\n\n### This query retreives a oldest man name and age who run in election in county clare.\n\n```\n     MATCH(a:constituencies{Name : \"Clare\"})-[:Ran_IN_Election]-\u003e \n\t\n\t(b:candidate_Clare)\n\t\n\tWHERE b.Age \u003e= 70\n\t\n\tRETURN b.Name , b.Age;\n\n\n\n```\n\n### This query will Find the list of people who won the election for more than 12000 votes , Their Names , Total Number of votes they got And was male or female and count them how many are their were .\n\n\n```\n\n     MATCH(a:constituencies{Name : \"Clare\"})-[:Ran_IN_Election]-\u003e \n\t\n\t(b:candidate_Clare)\n\t\n\tWHERE b.TotalVotes \u003e=12000\n\t\n\tRETURN b.Name , b.TotalVotes, b.Gender ,b.Age, Count(*);\n\n\n\n\n```\n\n\n\n## Built With\n* [Neo4J](http://neo4j.com/download) - Neo4j \n\n\n\n\n## Authors\n\n[SarabDevOps](https://github.com/sarabDevOps)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](https://github.com/sarbjeetkumar/Neo4j-Project/blob/master/LICENSE) file for details\n\n\n\n\n\n## References\n1. [Neo4J website](http://neo4j.com/), the website of the Neo4j database.\n2. http://neo4j.com/developer/cypher/\n3. https://en.wikipedia.org/wiki/Parliamentary_constituencies_in_the_Republic_of_Ireland.\n4. https://neo4j.com/developer/neo4j-browser/\n5.https://neo4j.com/download-center/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarabdevops%2Fneo4j-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarabdevops%2Fneo4j-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarabdevops%2Fneo4j-project/lists"}