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.
我觉得这有一个我想念的明显答案,但问题是:
我有一个本体,它有一个类'Class_N1',有一个子类'Class_N2',它有一个子类'Class_N3',它有一个子类'Class_N4'
当我运行此查询时:
SELECT ?entity WHERE { ?entity rdf:type :Class_N1 }
我从顶级类('Class_N1')及其子类和各自的子类中获取个人。
反正有没有只属于顶级/超级类的结果?
您已启用推理。有三个选项可以禁用推理:
创建存储库时选择“无推理”规则集(屏幕截图)。
取消选中>>查询编辑器中的 -like 图标(屏幕截图)。
>>
使用 GraphDB伪图:
SELECT ?entity FROM <http://www.ontotext.com/explicit> WHERE { ?entity rdf:type :Class_N1 }