属性路径深度在jena sparql中实际可用吗?

属性路径深度在jena sparql中实际可用吗?,sparql,jena,Sparql,Jena,我在耶拿有以下问题 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. } 前缀边缘: 前缀

我在耶拿有以下问题

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. }
前缀边缘:
前缀属性:
选择不同的?超类型?子类型,其中{
?超类型边缘:使用{1,3}?子类型。
?子类型(边:扩展|边:实现)+超类型。}
在芝麻中效果很好,但在jena中我得到以下错误:

在第1行第163列遇到“{”。 我期待的是:

此外,我还尝试将其设置为使用sparql 1、1.1和ARQ语法,但总是出现相同的错误。虽然相同的查询在sesame2中工作。所以我的问题是,Jenas sparql中的语法是否稍有不同,还是不受支持?(我假设它受支持。)


谢谢。

Jena现在是一个Apache项目-该网站是。SF文档是遗留的,用于维护旧链接

{}语法不是SPARQL 1.1的一部分(它已被删除)

您可以使用Syntax.syntaxARQ来获得扩展语法,扩展语法包括{}/


您可以使用来检查。

只是为了澄清一下,Sesame中的查询之所以能够工作,是因为它仍然支持属性路径的
{x,y}
语法,尽管它已经从官方标准中删除。不过,它是否会留在将来还没有决定。