Neo4j is a NO-SQL Graph database, it's written in java and it's open-source* !* But not only
Find out if a person get a specific role
Find out the possible new friends based on them liking similar things
http://localhost:7474/db/data/node/{id}
http://localhost:7474/db/data/node/{id}/properties/{key}
http://localhost:7474/db/data/node/{id}/relationships/{in|out}
curl --header "Content-Type: application/json" --data '{"foo":"bar"}' http://localhost:7474/db/data/node
curl http://localhost:7474/db/data/node/14
http://localhost:7474/db/data/relationship/{id}
http://localhost:7474/db/data/relationship/{id}/properties/{key}
http://localhost:7474/db/data/node/{id}/relationships
curl --header "Content-Type: application/json" --data '{"to" : "http://localhost:7474/db/data/node/6", "type" : "LINK", "data" : {"foo" : "bar"}}' http://localhost:7474/db/data/node/0/relationships
curl http://localhost:7474/db/data/relationship/25
// Display "name" of all node
g.V.name
// Complexe query :
g.v(23).out('knows').filter{it.age > 30}.out('like').name
START
// All node related to node 3
start n=(3) match (n)--(x) return x
// All node that are BLOCKed by node 3
start n=(3) match (n)-[r, :BLOCKS]-> (x) return x
// All BLOCKS relationships outgoing from node 3
start n=(3) match (n)-[r, :BLOCKS]-> () return r
// Where regex
start n=(2,1) match n.name =~ /Tob.*/ return n
START
joe=node:node_auto_index(name = "Joe")
MATCH joe-[:knows]->friend-[:knows]->friend_of_friend,
joe-[r?:knows]->friend_of_friend
WHERE r IS NULL
RETURN friend_of_friend.name, COUNT(*)
ORDER BY COUNT (*) DESC, friend_of_friend.name
All write operations must be performed in a transaction.
// Working on a property of a node (or a relationship)
lock the node (or the relationship)
// Create, remove a node
lock the node
// Create, remove a relationship
lock relationship and its nodes
Don't care of endpoint,JSON format, It's a part of the Neo4j process !
Based on JAX-RS, You can do what ever you want, JSON result depend on you !
Coming soon routing with OSM data
Use a spacebar or arrow keys to navigate