在第 1 行第 15 列遇到“”<”“<”。预期:<IRIref>

Encountered " "<" "< "" at line 1, column 15. Was expecting: <IRIref>

正在尝试在端点中使用查询。查询是在 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 ?Class
FILTER regex(?Class, "Motion") .
?def rdfs:domain ?Value .
?def rdfs:label ?Title .
?def rdfs:comment ?Definition}

url

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-用 one of many services and tools you might use, randomly selected from a web search 对其进行了编码,并将其附加到你所拥有的 "the URL"、http://localhost:3030/skosmos/query?query=.. .并且您验证了这是否有效 --

http://localhost:3030/skosmos/query?query=PREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0A%0D%0ASELECT+%3FClass+%3FTitle+%3FDefinition%0D%0AWHERE+%7B%0D%0A%3FValue+rdfs%3Alabel+%3FClass%0D%0AFILTER+regex%28%3FClass%2C+%22Motion%22%29+.%0D%0A%3Fdef+rdfs%3Adomain+%3FValue+.%0D%0A%3Fdef+rdfs%3Alabel+%3FTitle+.%0D%0A%3Fdef+rdfs%3Acomment+%3FDefinition%7D