Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neo4j-graph-examples/wwc2019
Explore the data behind the Women's World Cup with our World Cup Graph.
https://github.com/neo4j-graph-examples/wwc2019
dataset example-data graphdb neo4j sports womens-world-cup worldcup-data
Last synced: about 1 month ago
JSON representation
Explore the data behind the Women's World Cup with our World Cup Graph.
- Host: GitHub
- URL: https://github.com/neo4j-graph-examples/wwc2019
- Owner: neo4j-graph-examples
- Created: 2020-04-09T15:11:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T11:26:19.000Z (7 months ago)
- Last Synced: 2024-06-21T15:47:26.714Z (6 months ago)
- Topics: dataset, example-data, graphdb, neo4j, sports, womens-world-cup, worldcup-data
- Language: Cypher
- Homepage: https://sandbox.neo4j.com/?usecase=wwc2019
- Size: 4.05 MB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 30
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
:name: wwc2019
:long-name: Women's World Cup 2019
:description: Explore the data behind the Women's World Cup with our World Cup Graph
:icon: documentation/img/wwc2019-logo.png
:tags: example-data,dataset,worldcup-data,womens-world-cup,sports
:author: Mark Needham
:demodb: false
:data: import/*.json
:use-load-script: scripts/wwc2019.cypher
:use-dump-file: data/wwc2019-40.dump
:zip-file: false
:use-plugin: apoc
:target-db-version: 3.5,4.0
:bloom-perspective: bloom/wwc2019.bloom-perspective
:guide: documentation/wwc2019.neo4j-browser-guide
:rendered-guide: https://guides.neo4j.com/sandbox/womens-worldcup/index.html
:model: documentation/img/model.png
:example: documentation/img/example.png:todo: false
image::{icon}[width=100]== {long-name} Graph Example
Description: _{description}_
ifeval::[{todo} != false]
To Do: {todo}
endif::[].Model
image::{model}[].Example
image::{example}[width=600].Example Query:
[source,cypher,role=query-example,param-name=year,param-value=2019,result-column=team,expected-result=Jamaica]
----
MATCH (t:Tournament {year: $year})<-[:PARTICIPATED_IN]-(team)
RETURN team.name as team
----=== Setup
This is for Neo4j version: {target-db-version}
ifeval::[{use-plugin} != false]
Required plugins: {use-plugin}
endif::[]ifeval::[{demodb} != false]
The database is also available on https://demo.neo4jlabs.com:7473Username "{name}", password: "{name}", database: "{name}"
endif::[]Rendered guide available via: `:play {rendered-guide}`
Unrendered guide: link:{guide}[]
Load graph data via the following:
ifeval::[{data} != false]
==== Data files: `{data}`Import flat files (csv, json, etc) using Cypher's https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/[`LOAD CSV`], https://neo4j.com/labs/apoc/[APOC library], or https://neo4j.com/developer/data-import/[other methods].
endif::[]ifeval::[{use-dump-file} != false]
==== Dump file: `{use-dump-file}`* Drop the file into the `Files` section of a project in Neo4j Desktop. Then choose the option to `Create new DBMS from dump` option from the file options.
* Use the neo4j-admin tool to load data from the command line with the command below.
[source,shell,subs=attributes]
----
bin/neo4j-admin load --from {use-dump-file} [--database "database"]
----* Upload the dump file to Neo4j Aura via https://console.neo4j.io/#import-instructions
endif::[]ifeval::[{use-load-script} != false]
==== Data load script: `{use-load-script}`[source,shell,subs=attributes]
----
bin/cypher-shell -u neo4j -p "password" -f {use-load-script} [-d "database"]
----Or import in Neo4j Browser by dragging or pasting the content of {use-load-script}.
endif::[]ifeval::[{zip-file} != false]
==== Zip fileDownload the zip file link:{repo}/raw/master/{name}.zip[{name}.zip] and add it as "project from file" to https://neo4j.com/developer/neo4j-desktop[Neo4j Desktop^].
endif::[]=== Code Examples
* link:code/javascript/example.js[JavaScript]
* link:code/java/Example.java[Java]
* link:code/csharp/Example.cs[C#]
* link:code/python/example.py[Python]
* link:code/go/example.go[Go]=== Feedback
Feel free to submit issues or pull requests for improvement on this repository.