Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Neo4j
Search
Leo Soto
February 11, 2015
Technology
610
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Neo4j
Leo Soto
February 11, 2015
Transcript
34 slides
Neo4j: BD de grafos Leo Soto M. (@leosoto) #DevHangout -
2015
Intro
¿Se acuerdan de los grafos?
¿Se acuerdan de los grafos? Listas ⊂ Árboles ⊂ Grafos
¿Se acuerdan de los grafos? ¿BD relacionales ~= Grafos?
¿Se acuerdan de los grafos? ¿BD relacionales ~= Grafos? (Y
las relaciones N:M no son un hack)
Modelando el esquema de una BD de grafos
Listo. (no hay esquema, se trata de meter nodos y
conectarlos)
¿Preguntas?
¿Preguntas? (en serio, ¿les parece que tiene sentido?)
Neo4j
Graph Nodes records data in Nodes have Properties
Graph Nodes records data in Nodes have Properties Nodes Relationships
are organized by Relationships have Properties
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
Cypher
Crear nodos CREATE (c {name: "Continuum", address: "General Bustamante" }
) SET c:Company
Crear nodos CREATE (s {name: "Software"} ) SET s:Industry
Consultas (p1) MATCH (c:Company) WHERE c.name = "Continuum" RETURN c.address
Crear relaciones MATCH (c:Company), (s:Industry) WHERE c.name = "Continuum" AND
s.name = "Software" CREATE (c)-[r:works_in]->(s)
Crear relaciones MATCH (c:Company) WHERE c.name = "Continuum" CREATE (c)-[:works_in]->(ux
{name: "User Experience"} ) SET ux:Industry
Crear todo junto CREATE (bci {name: "Bci"} )-[r:works_in {since: 1937}]->(f
{name: "Finance"} ) SET bci:Company SET f:Industry
Consultas (p2) MATCH (c:Company)-[r:works_in]-(:Industry {name: "Finance"} ) WHERE r.since >
1900 RETURN c
Consultas (p2) MATCH (c:Company)-[r:works_in]->(i:Industry) WHERE c.name = "Continuum" RETURN c,r,i
Patrones (c:Company)-[r:works_in]->(i:Industry)
Patrones (c:Company)-->(i:Industry)
Patrones (c:Company)<--(i:Industry)
Patrones (c:Company)--(i:Industry)
Patrones (p:Person)—[*]->(i:Industry)
Patrones (p:Person)—[:knows*1..3]->(p)-[:works_in]->(i:Industry)
Patrones MATCH ( :Company {name: “Continuum”} )<-[:fan_of]-( fan:Person )-[red:knows*1..3]->( contacto
)-[:works_in]->( :Industry {name: "Venture Capital”} ) RETURN fan, red, contacto
Schema Index CREATE INDEX ON :Company(name) CREATE INDEX ON :Industry(name)
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
Legacy Index START n=node:MyCustomIndex(value=foo) MATCH (n)-...
¡Gracias! Leo Soto M. (@leosoto) Chief Wildcard @continuumhq - 2013
More Decks by Leo Soto
See All by Leo Soto
Innovación en un Mundo Digital
leosoto
0
42
El arte oscuro de estimar
leosoto
0
130
Other Decks in Technology
See All in Technology
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
270
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
Go でトランザクション、どう書いてますか?
knwoop
2
660
gradle-best-practices 使ってみた
mikanichinose
0
240
【Oracle AI SPOTLIGHT ウェビナー】AI時代、狙われるデータと止められない業務をどう守るか?
oracle4engineer
PRO
1
170
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
リリースしたで終わらない。 観測できるフロントエンド開発
yamakenji24
4
1.8k
[DBRE Summit 26] DBRE はデータベース運用をどう変えたのか
_awache
0
150
テスト自動化の先、テスト自律化に向けて
mineo_matsuya
3
1.1k
全てを疑え!非自明な挙動と異常系から考える堅牢なカスタムコントローラ開発入門(CNDW2026)
lycorptech_jp
PRO
0
120
Ignite 2026 Security
babaneko
0
120
Fukurou Labo_Engineer_Deck
fukuroulabo
0
120
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Code Reviewing Like a Champion
maltzj
529
40k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650
Navigating Team Friction
lara
192
16k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340