是否可以在 Jena 中添加定义个人类型的规则?
例如
String r;
r = "[rule1: (?a example:drives ?b), (?b rdf:type example:Truck) ->
(?a rdf:type example:TruckDriver)]";
//then parse and send to reasoner...etc
我在网上找到的所有示例和文档都使用自定义规则来分配个人(对象属性)之间的关系,而不是用于将个人分配给类的此规则。