我在耶拿有以下问题.
PREFIX edge: <http://test.com/edge#>
PREFIX property: <http://test.com/property#>
select distinct ?supertype ?subtype where{
?supertype edge:uses{1,3} ?subtype.
?subtype (edge:extends | edge:implements)+ ?supertype. }
Run Code Online (Sandbox Code Playgroud)
这在芝麻工作正常,但在jena我得到以下错误:
遇到""{""{""在第1行,第163列.期待以下之一:
此外,我已经尝试将其设置为使用sparql 1,1.1和ARQ语法,但始终是相同的错误.虽然相同的查询在sesame2中有效.所以我的问题是,Jenas sparql中的语法略有不同还是不受支持?(我假设http://jena.sourceforge.net/ARQ/property_paths.html支持它.)
谢谢.
Jena现在是一个Apache项目 - 该网站是http://jena.apache.org/.SF文档是遗留的,可用于维护旧链接.
{}语法不是SPARQL 1.1的一部分(已删除)
您可以使用Syntax.syntaxARQ来获取包含{} /的扩展语法
您可以使用http://www.sparql.org/query-validator.html进行检查.