我创建了以下简单架构:
insert
name sub resource datatype string;
id sub resource datatype string;
person sub entity has name has id;
和数据:
insert
$x isa person has name "Bob" has id bob;
如何获得我附加到实体的所有资源?我是否必须遍历所有这些?
答案 0 :(得分:2)
您可以通过查询根资源来获取所有资源:
match $x has resource $y;