This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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 |