Skip to content

Instantly share code, notes, and snippets.

@pducrot
pducrot / People network
Last active March 18, 2019 06:33
People network
== Domain
== Setup
//hide
//setup
[source,cypher]
----
CREATE CONSTRAINT ON (n:Person) ASSERT n.Name IS UNIQUE;
LOAD CSV WITH HEADERS FROM 'https://gist.githubusercontent.com/pducrot/d8cc544438631c3a8d3bb74106f9038a/raw/b681ffd513d13f1bebd6122a23ffca691b984fc9/knows.edges' as line FIELDTERMINATOR ',' MERGE (s:Person {Name: line.src}) MERGE (t:Person {Name: line.tgt}) CREATE (s)-[:KNOWS]-> (t) RETURN count(*);
@pducrot
pducrot / Compound Structure Network
Last active August 29, 2015 14:20
Compound Structure Network
= Compound Structure Network
Pierre Ducrot <pierre.ducrot@gmail.com>
v1.0, 3-May-2015
:neo4j-version: 2.2.0
:author: Pierre Ducrot
:twitter: ducrot_pierre
:tags: science, cheminformatics, molecular modeling
== Domain
= Scientific Bibliography
Pierre Ducrot <pierre.ducrot@gmail.com>
v1.0, 7-Mar-2015
:neo4j-version: 2.2.0
:author: Pierre Ducrot
:twitter: ducrot_pierre
:tags: science, publication
== Domain