Neo4j GraphGists are an easy way to create and share documents containing not just prose, structure and pictures but most importantly example graph models and use-cases expressed in Neo4j’s query language Cypher.
These documents are written in AsciiDoc — the simple, textual markup language — and rendered in your browser as rich and interactive web pages that you can quickly evolve from describing simple howtos or questions to providing an extensive use-case specification.
To see the expressive power of this approach, here are some winners of our past community competitions:
-
Identity and Access Management Entitlements and Access Control by @kennybastani
-
Finance Bank Fraud Detection by @kennybastani
-
Sports Alpine Skiing seasons by @pac_19
-
Life Science Pharmaceutical Drugs and their Targets by @joshkunken
-
Resources Piping Water by @shaundaley1
-
Retail Single Malt Scotch Whisky by @patbaumgartner
-
Telecommunications Amazon Web Services Global Infrastructure Graph by @aidanjcasey
-
Infrastructure Roads, Nodes and Automobiles by @tekiegirl
-
Recommendation Movie Recommendations with k-NN and Cosine Similarity by @_nicolemargaret
-
One hundred more examples can be found in the GraphGist Collection
-
Log into your GitHub account
-
Choose one of the examples listed above, click the green page source button.
-
Fork the original GraphGist into your own account and start to edit the prose, images, setup and use-case Cypher queries.
-
Paste the Github Gist URL into the top right URL box of any GraphGist page and hit enter; your Gist will be loaded and rendered immediately.
-
Reload your GraphGist page whenever you made an update to your document.
-
Share your GraphGist with your colleagues, friends or us. Hit the submit link in the footer, when you are ready to get your t-shirt reward.
CREATE (you:Person {name:"You"})-[like:LIKE]->(us:Database:NoSql:Graph {name:"Neo4j" })
RETURN you, like, us
And render as a graph.
MATCH (you:Person {name:"You"})-[like:LIKE]->(liked)
RETURN you.name AS who, type(like) AS how, liked.name AS what
And render as a table.
Note
|
This document is a GraphGist itself, so you can use the green Page Source button on top of the page to see the original AsciiDoc document. |
We’d love to get your feedback, so feel free to write us at docs at neo4j.org or comment in the section below.