Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
?cat在给定的意义上,引用是双向的?person吗[?person :pet ?cat]?
?cat
?person
[?person :pet ?cat]
或者我应该在另一边手动构建一个引用(例如为宠物设置一个属性)以防止在所有具有s:owner的 s 中进行线性搜索??person:pet
:owner
:pet
不,显式存储关系的双方没有速度优势,所有关系都是双向的。