Skip to content

Instantly share code, notes, and snippets.

Avatar

Rik Van Bruggen rvanbruggen

View GitHub Profile
@rvanbruggen
rvanbruggen / create_gped_db.cql
Last active Oct 19, 2018 — forked from jexp/graph_gist_template.adoc
Global Emission Power Database
View create_gped_db.cql
//create indexes
create index on :Classification(name);
create index on :SubClassification(name);
create index on :FuelType(name);
create index on :Country(name);
create index on :Plant(name);
create index on :Plant(id);
//FROM FUELTYPE TAB
@rvanbruggen
rvanbruggen / linkedin-query.py
Last active Nov 11, 2020 — forked from ThomasCabrol/linkedin-2-query.py
Python script to query your LinkedIn network and get all your network's connections and their interconnections.
View linkedin-query.py
#!/usr/bin/env python
# encoding: utf-8
"""
linkedin-query.py
Created by Thomas Cabrol on 2012-12-03.
Customised by Rik Van Bruggen
Copyright (c) 2012 dataiku. All rights reserved.
Building the LinkedIn Graph
@rvanbruggen
rvanbruggen / My first BeerGist
Last active Dec 19, 2015 — forked from nawroth/tutorial-graphgist
BeerGraph GraphGist
View My first BeerGist
= My simple BeerGraph Datamodel =
Let's see if I can create a graphgist for my beers
[source,cypher]
----
CREATE (brewery:brewery{name:'Brewery'}), (beerbrand:beerbrand{name:'BeerBrand'}), (alcperc:alcoholpercentage{name:'Percentage'}), (beertype:beertype{name:'BeerType'})
CREATE (alcpercbefore:alcoholpercentage{name:'PercentageBefore'}), (alcpercafter:alcoholpercentage{name:'PercentageAfter'})
CREATE brewery-[:BREWS]->beerbrand<-[:HAS_ALCHOLHOL_PERCENTAGE]-alcperc
CREATE alcpercbefore-[:PRECEDES]->alcperc-[:PRECEDES]->alcpercafter
You can’t perform that action at this time.