首页 > 解决方案 > 在第 1 行第 15 列遇到““<”“<”。期待:

问题描述

尝试在端点中使用查询。该查询是在 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
}

标签: sparql

解决方案



推荐阅读