lju-lazarevic / wine Goto Github PK
View Code? Open in Web Editor NEWExploring a wine data set with graphs
Exploring a wine data set with graphs
Hello, did anyone tried to migrate to neo4j 5 a script that establish relationships? It does exceed my cipher for neo4j skills.
I am fully aware of how commit got obsolete and replaced it with a statement call {...} in transactions, but chained CASE statements got stopped me.
:auto //add this line if you're using Neo4j Browser
USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM 'https://raw.githubusercontent.com/lju-lazarevic/wine/master/data/winemag-data-130k-v3.csv' AS row
FOREACH (i IN
CASE WHEN row.designation IS NOT NULL
THEN [row.designation]
ELSE ["No Designation"]
END | MERGE (d:Designation {name:i}))
FOREACH (i IN
CASE WHEN row.taster_name IS NOT NULL
THEN [row.taster_name]
ELSE ["No Taster"]
END | MERGE (t:Taster {name:i}))
FOREACH (i IN
CASE WHEN row.variety IS NOT NULL
THEN [row.variety]
ELSE ["No Variety"]
END | MERGE (v:Variety {name:i}))
CREATE (w:Wine {id:row.id, title:row.title})
Excellent data set and series, thank you!
Load query as shown in README doesn't work (anymore?).
Errors with: Couldn't load the external resource at: https://github.com/lju-lazarevic/importdata/blob/master/winemag-data-130k-v3.csv?raw=true
:auto //add this line if you're using Neo4j Browser
USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM 'https://raw.githubusercontent.com/lju-lazarevic/wine/master/data/winemag-data-130k-v3.csv' AS row
//etc
^-- Using with this URL works for me.
Also is it intentional to spell 'PROVINCE' in the diagram as 'PROVENCE' ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.