在第15行的第15行遇到了“” <“” <“”,期望是:<iriref>

时间:2018-11-14 05:42:41

标签: 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 ?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
}