Skip to content

0.2.6: call from nGQL

Compare
Choose a tag to compare
@wey-gu wey-gu released this 17 Mar 06:08
· 53 commits to main since this release

NOW we could do this from ngdi-graphd:

RETURN ngdi("pagerank", ["follow"], ["degree"], "spark",
    {space: "basketballplayer")

And we could then query the result:

> MATCH (n:pagerank) RETURN n LIMIT 100
+--------------------------------------------------------------------------------------------------------------------------+
| n                                                                                                                        |
+--------------------------------------------------------------------------------------------------------------------------+
| ("player103" :player{age: 32, name: "Rudy Gay"} :k_core{kcore: "2"} :pagerank{pagerank: "0.4136941105624347"})           |
| ("player113" :player{age: 29, name: "Dejounte Murray"} :k_core{kcore: "9"} :pagerank{pagerank: "0.18601069183310504"})   |
| ("player121" :player{age: 33, name: "Chris Paul"} :k_core{kcore: "6"} :pagerank{pagerank: "0.7722390133001014"})         |
| ("player128" :player{age: 34, name: "Carmelo Anthony"} :k_core{kcore: "5"} :pagerank{pagerank: "0.6378489045192177"})    |
| ("player130" :player{age: 25, name: "Joel Embiid"} :k_core{kcore: "2"} :pagerank{pagerank: "1.240071278887367"})         |
| ("player136" :player{age: 45, name: "Steve Nash"} :k_core{kcore: "6"} :pagerank{pagerank: "0.9630467717345428"})         |
| ("player127" :player{age: 42, name: "Vince Carter"} :k_core{kcore: "3"} :pagerank{pagerank: "0.41137708929793865"})      |
| ("player135" :player{age: 28, name: "Damian Lillard"} :pagerank{pagerank: "0.18601069183310504"})                        |
| ("player147" :player{age: 36, name: "Amar'e Stoudemire"} :k_core{kcore: "2"} :pagerank{pagerank: "0.394140180311375"})   |
| ("player148" :player{age: 45, name: "Jason Kidd"} :k_core{kcore: "6"} :pagerank{pagerank: "0.7851354954626473"})         |
| ("player124" :player{age: 33, name: "Rajon Rondo"} :k_core{kcore: "2"} :pagerank{pagerank: "3.846279165534634"})         |
| ("player105" :player{age: 31, name: "Danny Green"} :k_core{kcore: "5"} :pagerank{pagerank: "0.2796100843910806"})        |
| ("player109" :player{age: 34, name: "Tiago Splitter"} :k_core{kcore: "2"} :pagerank{pagerank: "0.18601069183310504"})    |

What's Changed

Note, also added a binary of ngdi.so UDF for ubuntu 20.04, if you would like to build your own refer to docs.

The playground env is ready, too, see docs