Open clemsos opened 7 years ago
1 SELECT person.eyeColor, COUNT(*), MAX(person.age)
2 // 'Brown' 1 29
3 // 'Blue' 1 43
4 FROM snGraph
5 WHERE
6 (person:Person),
7 NOT EXISTS {
8 person -[:has_father|:has_mother]-> parent,
9 parent.eyeColor = 'Blue'
10 }
11 GROUP BY person.eyeColor
12 HAVING COUNT(*) < 4
13 ORDER BY COUNT(*) DESC
[name>>KEYWORD].[type=Person]”
some more stuff here https://github.com/declarativitydotnet/declarativity
I am going to list here some query languages for graphs that exists
Cypher
Gremlin
NQL
inspired by SQL -based attempt
Facebook Graph (user search query)
notes : how the parser works
SPARQL (RDF)