Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

Plant database schema

Introduction

You can run this query to get an overview of entities and how they are related: MATCH (a)-[r]→(b) WHERE labels(a) <> [] AND labels(b) <> [] RETURN DISTINCT head(labels(a)) AS This, type(r) as To, head(labels(b)) AS That LIMIT 10

A Cypher query to setup the database Please use a small sample of your domain, at most 150 nodes and 200 relationships are enough for the pedagocial example. You can link to the setup of a larger dataset or LOAD CSV queries in a second file of your GitHub Gist at the end. In your setup query you can also use LOAD CSV loading CSV files from your GitHub Gist, like here: https://gist.github.com/jexp/f78df7b232d0faa171ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment