如何在 rdf 和 shacl 中编写和使用规则

问题描述

假设一个规则如下:

if someone.height>180 then 
       someone is tallPerson
else if someone.height>155 then 
       someone is mediumPerson
else
       someone is shortPerson

如何在 shacl 形状文件中表示这些规则? 如果我有这样的数据图:

 :bob a :Person ;
      :hasHeight 185 .

我怎样才能得到:

:bob a :tallPerson .

感谢您的帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)