Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Neo4j

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Avatar for Leo Soto Leo Soto
February 11, 2015

 Neo4j

Avatar for Leo Soto

Leo Soto

February 11, 2015

More Decks by Leo Soto

Other Decks in Technology

Transcript

  1. Graph Nodes records data in Nodes have Properties Nodes Relationships

    are organized by Relationships have Properties
  2. Graph Nodes records data in Nodes have Properties Nodes Relationships

    are organized by Relationships have Properties Nodes Labels are grouped by Indexes Properties map from Nodes/Rels to
  3. Crear todo junto CREATE (bci {name: "Bci"} )-[r:works_in {since: 1937}]->(f

    {name: "Finance"} ) SET bci:Company SET f:Industry
  4. Patrones MATCH ( :Company {name: “Continuum”} )<-[:fan_of]-( fan:Person )-[red:knows*1..3]->( contacto

    )-[:works_in]->( :Industry {name: "Venture Capital”} ) RETURN fan, red, contacto
  5. Schema Index CREATE INDEX ON :Company(name) CREATE INDEX ON :Industry(name)

    MATCH (c:Company)-[r:works_in]->(i:Industry) WHERE c.name = "Continuum" RETURN c,r,i