typedb / typeql

TypeQL: the power of programming, in your database
https://typedb.com
Mozilla Public License 2.0
221 stars 46 forks source link

Analytics starting with a match query #49

Closed grabl closed 1 year ago

grabl commented 6 years ago

This issue was originally posted by @haikalpribadi on 2018-04-12 13:47.

Improve analytics syntax, pass a match query as subgraph. e.g. degree:

match 
$x isa person; 
$y isa movie; 
($x, $y) isa has-cast; 
compute degree; persist true;
graql.match(
var(“x”).isa(“person”), 
var(“y”).isa(“movie”), 
var().rel(“y”).rel(“x”).isa(“has-cast”)
).compute().degree().execute();

This can NOT be done with the current version with TinkerPop.

grabl commented 6 years ago

This comment was originally posted by @haikalpribadi on 2018-04-13 01:54:15+02:00.

Yes! I would love to see this implemented! :)  But I suppose, this won't be a priority for this month's release, yeah? Jason Liu 

flyingsilverfin commented 1 year ago

Analytics is currently not supported and will eventually be redesigned into a new form.