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.
我想知道当我使用 apache jena arq 创建 sparql 扩展函数时,它在哪里添加到语法 sparql 中,用于属性函数和过滤器函数。
语法不变。
一个新的表达式函数有一个 URI,它被调用为
BIND(my:function(?x,?y) AS ?newValue)
或在 FILTER、SELECT 表达式等中。
注册FunctionRegistry.get().put(....)或<java:...>用于自动加载。
FunctionRegistry.get().put(....)
<java:...>
属性函数是三元组模式中的属性:
?S my:propertyFunction ?O .
注册PropertyFunctionRegistry.get().put(....)
PropertyFunctionRegistry.get().put(....)