SPARQL查询中的错误 [英] Error in SPARQL Query
本文介绍了SPARQL查询中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的SPARQL查询出错,但找不到:
I'm getting an error with my SPARQL query but can't find it out:
查询
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX : <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dbpedia: <http://dbpedia.org/>
SELECT DISTINCT ?lat, ?long {
:Taj_Mahal dbpedia2:latitude ?lat .
:Taj_Mahal dbpedia2:longitude ?long }
错误
Encountered " "," ", "" at line 9, column 21.
Was expecting one of:
...
...
"from" ...
"where" ...
"(" ...
"{" ...
任何建议?
推荐答案
您不应在?lat
和?long
SELECT DISTINCT ?lat ?long {
:Taj_Mahal dbpedia2:latitude ?lat .
:Taj_Mahal dbpedia2:longitude ?long
}
这篇关于SPARQL查询中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文