This document discusses potential new features and extensions to the Cypher query language for graph databases, including the ability to load, match, and return graph structures; perform set operations on graphs; add annotations and properties to graphs; and create, modify, and delete named graph objects. It also briefly mentions the relationship between Cypher and SQL and plans for future versions of Cypher.
27. opencypher.orgopencypher.org | opencypher@googlegroups.com
MATCH (c:City {name: "London"})
MATCH (c)<-[:LIVES_IN]-(a)-[:LOVES]-(b)-[:LIVES_IN]->(c)
WITH GRAPH FROM (x)-[:KNOWS]-(y)
WHERE NOT EXISTS { (x)-[:LOVES]-(y) }
MATCH (a)-(single_friend)-(b)
RETURN *
36. opencypher.orgopencypher.org | opencypher@googlegroups.com
MATCH GRAPH <MyGraph:Label {name: 15}> ...
WITH GRAPH <MyGraph:Label {name: 15}> FROM ... THROUGH ...
LOAD GRAPH MyGraph ADD TO GRAPH ...
MATCH IN GRAPH ... REMOVE FROM GRAPH ...
SET MyGraph.name = 15 ADD MyGraph:SocialNetwork
REMOVE MyGraph.name REMOVE MyGraph:Experiment