我正在将应用程序从 Sesame 移动到 Blazegraph,并且对以下查询有疑问。在 Sesame 上运行正常,但 Blazegraph 报告错误:
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?otherperson ?name (count(?name) as ?count) WHERE {
?article schema:mentions <http://trove.alveo.edu.au/name/8e0fd54e145f0d0643fec64731d488fa> .
?article schema:mentions ?otherperson .
?article dcterms:title ?articletitle .
?otherperson foaf:name ?name .
filter (<http://trove.alveo.edu.au/name/8e0fd54e145f0d0643fec64731d488fa> != ?otherperson)
} group by ?name
order by desc(?count)
LIMIT 50
Blazegraph 错误是:
java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: Bad aggregate
这是 Blazegraph 的 Ubuntu 安装:
Build Version=2.0.0
Build Git Commit=516e5a7014af1fbe378772c02d51ba1046f53e08
我该如何解决这个问题?