我看到一个单元测试资源(path2.n3)中提到的“数学”内置,并尝试了它,但它似乎不起作用:
@prefix math: <http://www.w3.org/2000/10/swap/math#>.
@prefix : <http://test#>.
{ (2 1) math:sum ?y. } => { :result :is ?y. }.
:result :is (2 1)!math:sum.使用此查询:
SELECT ?s WHERE { :result :is ?s. }我先应用RdfsReasoner,然后应用SimpleN3RulesReasoner。
它不为隐含返回任何内容,只为第二行返回一个空节点。"string“内置的连接也有类似的行为。
是我做错了什么,还是目前没有对此的支持?
发布于 2020-03-11 18:48:51
测试文件用于N3解析器单元测试。推理器目前只支持隐含运算符,没有实现任何N3数学或字符串函数,也没有实现其他逻辑运算符,如log:includes或log:semantics。
https://stackoverflow.com/questions/60629164
复制相似问题