Python Istanbul toplantısında yapılan Karmaşık ağlar (complex networks) ve NetworkX sunumu. Sunumda karmaşık ağlar ve graph'lar üzerine özet içerikler bulunur.
These webinar slides are an introduction to Neo4j and Graph Databases. They discuss the primary use cases for Graph Databases and the properties of Neo4j which make those use cases possible. They also cover the high-level steps of modeling, importing, and querying your data using Cypher and touch on RDBMS to Graph.
Python Istanbul toplantısında yapılan Karmaşık ağlar (complex networks) ve NetworkX sunumu. Sunumda karmaşık ağlar ve graph'lar üzerine özet içerikler bulunur.
These webinar slides are an introduction to Neo4j and Graph Databases. They discuss the primary use cases for Graph Databases and the properties of Neo4j which make those use cases possible. They also cover the high-level steps of modeling, importing, and querying your data using Cypher and touch on RDBMS to Graph.
22. NEO4J
instance_of Graph
Database
has
NoSQL
Databases
JAVA
Neo
Technology
Open
Source
Nodes
is_a
has
Edges has
Attributes
has
developed_by
developed_as
written_in
26. cypher
•Neo4j’nin kullandığı sorgu dilidir.
•SQL gibi düşünülebilir.
MATCH (me {name:"fatih"})-[:FOLLOWS]->(followees)
RETURN followees
27.
28. Sürücüler
•REST interface’ini kullanmak
oldukça basittir.
•Eğer bir client isterseniz de birçok
dilde implementation’ı mevcuttur.
POST http://localhost:7474/db/data/transaction/commit
{
"statements": [{
"statement" : “YOUR CYPHER QUERY”
}]
}
30. İlişkiler
MATCH (user { username:'fatih' }),
(followee { username:'ramazan' })
# user’ları match edip aralarında
# bir edge (ilişki) yaratıyoruz
CREATE (user)-[:FOLLOWS]->(followee);
31. Query
MATCH (me {username:'fatiherikli'})
-[r:FOLLOWS]->(followees)
return me, followees
32.
33.
34. Yönler
MATCH (me {username:'fatiherikli'})
<-[r:FOLLOWS]-(followers)
return me, followers
36. örnek:
fatih ve sepetle yumurta kişisinin ortak olarak
takip ettiği kişiler:
MATCH (fatih { username:'fatiherikli' }),
(sepet { username: 'sepeth'})
WITH fatih, sepet
MATCH (fatih)-[:FOLLOWS]->(mutual)<-[:FOLLOWS]-(sepet)
RETURN mutual
38. örnek:
fatih kişisinin takip ettiği kişilerin yazdığı
kanallar
MATCH (fatih { username:'fatiherikli' })
WITH fatih
MATCH (fatih)-[:FOLLOWS]->(followees)<-[:POSTED_IN]-(channels)
RETURN channels
39. örnek:
fatih kişisinin takip ettiği kanallar üzerinden
takip edilecek kişi önerileri
MATCH (fatih { username:'fatiherikli' })
WITH fatih
MATCH (fatih)-[:SUBSCRIBER_OF]->(channels)
->[:POSTED_IN]-(contentions)
<-[:POSTED_BY]-(authors)
RETURN distinct authors