【发布时间】:2015-08-24 08:53:19
【问题描述】:
我正在尝试使用one of the SPARQL endpoints 来运行我的查询。这是我的查询:
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX dv: <http://bio2rdf.org/bio2rdf.dataset_vocabulary:>
SELECT DISTINCT ?sider_side_effect_ID3
WHERE
{
SERVICE <cu.sider.bio2rdf.org/sparql>
{
?sider_side_effect_ID3 <http://purl.org/dc/terms/title> ?sider_side_effect_label_ID3
. ?sider_side_effect_label_ID3 bif:contains "'Anxiety'"
. ?sider_drug_ID2 a <http://bio2rdf.org/sider_vocabulary:Drug>
. ?sider_drug_ID2 <http://bio2rdf.org/sider_vocabulary:side-effect> ?sider_side_effect_ID3
} }
但是,当我按下运行按钮时,出现以下错误:
Virtuoso RDFZZ Error DB.DBA.SPARQL_REXEC('cu.sider.bio2rdf.org/sparql', ...) returned Content-Type 'text/html' status 'HTTP/1.1 400 Bad Request
如果我删除了SERVICE 关键字及其大括号,则查询工作正常。我怎样才能正确使用这个关键字?
【问题讨论】:
标签: sparql semantic-web endpoints