Skip to content

Instantly share code, notes, and snippets.

@GrabResolver(name="neo4j", root="http://m2.neo4j.org/")
@GrabResolver(name="restlet", root="http://maven.restlet.org/")
@GrabConfig(systemClassLoader = true)
@Grab('org.neo4j:neo4j-jdbc:2.1.4')
import groovy.sql.*
def sql = Sql.newInstance('jdbc:neo4j://localhost:7474/')
def titles=["abc","def","ghi"]
titles.each {
sql.execute """
@sarmbruster
sarmbruster / panama_papers_azerbaijan.adoc
Last active May 3, 2016 14:47 — forked from jexp/panama_papers_azerbaijan.adoc
ICIJ Panama Papers Graph Model Exploration

The #PanamaPapers - Example Dataset President of Azerbaijan my changes

Let’s look at the family of the Azerbaijan’s President Ilham Aliyev who was already the topic of a GraphGist by Linkurious in the past. We see his wife, two daughters and son depicted.

Source

@sarmbruster
sarmbruster / beergist.adoc
Created September 21, 2016 11:52 — forked from rvanbruggen/beergist.adoc
Creating a beergraph straight from wikipedia

Belgian Beer Graph - straight from Wikipedia into a GraphGist

For the past couple of years, I have been preaching the Neo4j gospel in many different places, meetups, conferences, and what have you. For the most part, I have been using a very specific demo that has been super well-received: The Belgian Beer Graph. It started out as a learning experience for me personally back in the day when Neo4j did not have any proper data import functionality - and I had to load the graph by jumping through all kinds of hoops.

belgian beers