Skip to content

Instantly share code, notes, and snippets.

View peterneubauer's full-sized avatar

Peter Neubauer peterneubauer

View GitHub Profile

Neo4j Graph Gist

Neo4j GraphGists are a way to share documents including Cypher queries. The queries can be executed in an online console. GraphGists can be used to share examples or ideas or outline a question you have.

You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page. The GraphGist is just as private as the GitHub Gist you created. To share a GraphGist, just share the URL the page gets after entering the Gist in the form.

User Suggestion with mutual count

Following up on This Question

CREATE (A {userid:1000, name: 'A'})
= Business Rule / Recommendation gist =
In this simple example, we want to highlight the power of graphs to describe, discover, visualise and implement powerful business rule-based recommendations.
In the example, we will create a simple graph containing
- a +person+ ("Rik")
- a +city+ ("London")
- an +age+ ("39")
- a +child+ ("Toon")
and all the required relationships from the person to the city, to his age, and his child.
[source,cypher]
----
hej
----
//console

Neo4j Graph Gist

Neo4j GraphGists are a way to share documents including Cypher queries. The queries can be executed in an online console. GraphGists can be used to share examples or ideas or outline a question you have.

You create a GraphGist by creating a GitHub Gist in AsciiDoc and enter the URL to it in the form on this page. The GraphGist is just as private as the GitHub Gist you created. To share a GraphGist, just share the URL the page gets after entering the Gist in the form.

The starwars universe

May the force be with you

@peterneubauer
peterneubauer / Creating_the_Shakespeare_Graph.adoc
Last active April 22, 2019 20:36 — forked from nawroth/GraphGist-intro.adoc
This is part of a series of graphgists, taking the examples in the GraphDatabases book and making them available for playing with Neo4j 2.0 updates.

GraphDatabases Neoj4 2.0 examples

cropped graphdatabases cover390x5121

This graphgist is an attempt to give some live datasets for the Graphdatabases book by Ian Robinson and Jim Webber, based on the work and blog of Joerg Baach in his blog post

The Shakespeare setup

The Neo4j T-Graph

This is the full account of all Neo4j-T-Shirts given by different members of the community. Wanna join? Contact one of them! They look something like this (Courtesy René Pickhardt):

streamshirt
Important
Wait a while for the data to load, it’s still a bit slow, hosted on a weak instance on Heroku.

The Neo4j GraphGist Console

This is a sample GraphGist explaining some of the base concepts of sharing graphs using the Cypher query language.

CREATE ({name:'you'})-[:SEE]->({name:'This GraphGist'})-[:FORK_ON_GITHUB]->(your_gistfile{name:'Your Gist'})
CREATE (your_gistfile)-[:INSERT_ID_HERE]->({name:'Your GraphGist'})

The Neo4j GraphGist Console

This is a sample GraphGist explaining some of the base concepts of sharing graphs using the Cypher query language.

CREATE ({name:'you'})-[:SEE]->({name:'This GraphGist'})-[:FORK_ON_GITHUB]->(your_gistfile{name:'Your Gist'})
CREATE (your_gistfile)-[:INSERT_ID_HERE]->({name:'Your GraphGist'})