Sparql 在第1行第15列遇到“
正在尝试在终结点中使用查询。查询是在SPARQL中创建的。错误就像Sparql 在第1行第15列遇到“,sparql,Sparql,正在尝试在终结点中使用查询。查询是在SPARQL中创建的。错误就像 Encountered " "<" "< "" at line 1, column 15. Was expecting: <IRIref> ... 查询: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?Class ?Title ?Definition WHERE { ?Value rdfs:label ?C
Encountered " "<" "< "" at line 1, column 15.
Was expecting:
<IRIref> ...
查询:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?Class ?Title ?Definition
WHERE {
?Value rdfs:label ?Class
FILTER regex(?Class, "Motion") .
?def rdfs:domain ?Value .
?def rdfs:label ?Title .
?def rdfs:comment ?Definition}
网址
http://localhost:3030/skosmos/query?query=
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?Class ?Title ?Definition
WHERE {
?Value rdfs:label ?Class
FILTER regex(?Class, "Motion") .
?def rdfs:domain ?Value .
?def rdfs:label ?Title .
?def rdfs:comment ?Definition
}
我接受了您的原始查询,用URL对其进行编码,并将其附加到您的URL开头,http://localhost:3030/skosmos/query?query= ... 你证实了这是有效的-
欢迎来到StackOverflow。我们很乐意帮助你。为了提高你得到答案的机会,这里有一些提示:你给我们看的那句话本身看起来并没有错。您能否显示完整的SPARQL查询,并让我们知道您正在使用哪个软件执行查询?请回答您的问题以添加这些详细信息。而且,正如蒂丽娜在上文中所建议的那样,我们来看看写好问题的一些技巧。@NaveenNatarajan错误信息很清楚,不是吗?您忘记了前缀声明中的尖括号。当您通过HTTP请求运行查询时,是否对其进行URL转义?@AKSW否,我没有忘记尖括号。