3 ms·
In Apache TinkerPop's Gremlin3. g.V().match( as("cypher").hasLabel("QueryLanguage").out("queries").as("graphs"), as("user").out("uses").as("cypher"),
by okram 11y ago
In Apache TinkerPop's Gremlin3.
g.V().match(
as("cypher").hasLabel("QueryLanguage").out("queries").as("graphs"),
as("user").out("uses").as("cypher"),
where("user", within(["Oracle","Apache Spark", "Tableau", "Structr"])),
as("openCypher").out('makesAvailable").as("cypher")).
select("cypher").by("attributes")
The original query is sort of an odd query as you don't don't need all the unbound variables...
And if you want to use SPARQL over TinkerPop, just use a SPARQL->Gremlin Virtual Machine compiler.
https://github.com/dkuppitz/sparql-gremlin https://github.com/dkuppitz/sparql-gremlin
- johnymontana 11y agoYeah, I actually wrote that query just as an example to show what Cypher looks like and some fun around the openCypher announcement. Wasn't expecting it to end up on HN, let alone have Marko convert it to Gremlin...