Re:Introducing OpenCypher, the open graph query language pro...
by jakewins on Thursday October 22, 2015 @06:02PM
(#10435429)
There's nothing stopping you from flipping that relationship order though, or making that pattern more compact. In fact, I'd prefer an overall reversed order, something like:
I guess, in this particular case, it's subjective preference which language you feel expresses the query pattern most legibly. I certainly prefer the visual approach of cypher.
[ Parent
| on HN ]
Re:Introducing OpenCypher, the open graph query language pro...
by okram on Thursday October 22, 2015 @06:50PM
(#10435681)
Ah, thats better as you don't need all the unbound variables. However, you still don't need "graphs" unless for the English reading of the promotion.
In Gremlin3, the above is:
g.V().match(
as("openCypher").out("makesAvailable").hasLabel("QueryLanguage").as("cypher").out("queries").as("graphs"),
as("user").out("uses").as("cypher"),
where("user", within(["Oracle","Apache Spark", "Tableau", "Structr"])),
select("cypher").by("attributes")
Re:Introducing OpenCypher, the open graph query language pro...
by jerven on Friday October 23, 2015 @04:34AM
(#10437475)
I like cypher, then gremlin for small queries. The problem is the queries I see are much, much larger. And at about 10 lines in the use of white space in SPARQL starts to make a
real difference in readability in my opinion.
That can of course also be affected by my slight reading disability where the shape of the words is important. This shape could be disturbed by the connecting sigils in both gremlin and Cypher. So I understand that my preference might not hold for the whole population :)