有没有办法在GRAQL中定义递归查询,即匹配一个模式,其中实体之间的确切谓词路径是未知的(例如,实体之间有多少)? SPARQL在1.1版本中添加了对这些特性的支持。来自Apache Jena Documentation的示例 # Find the types of :x, following subClassOf{
:x rdf:type示例: MATCH (alice:Person { name:"Alice&
type("overlap-rule").sub(Graql.Token.Type.RULE)overlap-rule sub rule, $t1 isa trip;
$t2 isa{$o id V81928216 (overlapped-trip: id V4136, overlapped-trip: id V4296) isa trip-overlap;}
在我的Grakn模式中,我插入了以下内容: device sub entity, plays active-device; 然而,当我尝试插入这段代码时,我得到了这个错误: graql.lang.exception.GraqlException: syntax error at line 72: ^mismatched input 'type' expecting {'match