Skip to content

Instantly share code, notes, and snippets.

View peterneubauer's full-sized avatar

Peter Neubauer peterneubauer

View GitHub Profile
@peterneubauer
peterneubauer / SpatialOsmImport.java
Created September 15, 2012 19:46 — forked from mavenik/SpatialOsmImport.java
Neo4j Spatial Import
/**
* Copyright (c) 2010-2012 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.

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'})

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.
@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 starwars universe

May the force be with you

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.

[source,cypher]
----
hej
----
//console
= 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.

User Suggestion with mutual count

Following up on This Question

CREATE (A {userid:1000, name: 'A'})