【发布时间】:2011-09-19 07:36:07
【问题描述】:
在我的应用程序中,我使用的 SPARQL 数据库是 Jena 的 SDB,数据库服务器是 DB2。但我发现 SPARQL 的查询性能非常低。
谁能帮我解决这个问题?如何提高sparql的查询性能,特别是SDB的查询性能?
以下是我的测试用例数据和 SPARQL:
测试用例:
总rdf三重计数为13294。查询结果三重计数为420。 查询耗时 42 秒。
SPARQL 是:
SELECT DISTINCT ?s ?name ?ownerId ?status ?time
?value ?startTime ?endTime ?description
WHERE
{
?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> "http://www.w3c.com/schemas/cp#Event" .
?s <http://www.w3c.com/schemas/cp#time> ?time .
?s <http://www.w3c.com/schemas/cp#ownerId> ?ownerId .
?s <http://www.w3c.com/schemas/cp#name> ?name .
?s <http://www.w3c.com/schemas/cp#value> ?value .
?s <http://www.w3c.com/schemas/cp#_status> ?status .
?s <http://www.w3c.com/schemas/cp#start_Time> ?startTime .
?s <http://www.w3c.com/schemas/cp#end_Time> ?endTime .
?s <http://www.w3c.com/schemas/cp#description> ?description .
FILTER(xsd:dateTime(?time) >= "2011-08-12T00:00:00"^^xsd:dateTime
&& xsd:dateTime(?time) <= "2011-09-18T23:59:59"^^xsd:dateTime)
}
【问题讨论】:
标签: performance sparql jena