Cypher Query Language
A new query language, code-named “Cypher” allows for expressive and efficient querying of the graph store without having to write traversers in code.
Cypher is designed to be a humane query language, suitable for both developers and operations professionals who want to make ad-hoc queries on the database. Its constructs are based on English prose and neat iconography, which helps to make it (somewhat) self-explanatory.
Example 1: Find a user called John in an index and then traverse the graph looking for friends of Johns friends (though not his direct friends) before returning both John and any friends-of-friends that are found.
Example 2: Take a list of users (by node ID) and traverse the graph looking for those other users that have an outgoing friend relationship, returning only those followed users who are older than 18.
Reference:
--
Contributors: PeterThoeny - 2011-09-16
Discussion
Interesting concept. Could be used to define a new query language for TWiki?
--
PeterThoeny - 2011-09-16