sparql - 在第 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
}
解决方案
我获取了您的原始查询,使用您可能使用的众多服务和工具之一对其进行 URL 编码,从网络搜索中随机选择,并将其附加到您所拥有的“URL”的开头,http://localhost:3030/skosmos/query?query=
......并且您验证了这行得通——
推荐阅读
- twilio - Twilio 函数检索语音邮件类型错误:不推荐使用参数“auth”。改用“用户名”/“密码”
- r - 如何在一个几何而不是另一个上绘制网格
- reactjs - 添加到可观察数组时,mobx 反应未能触发
- jquery - Rails 5.2 上 jquery DataTables 和 will_paginate gem 的分页问题
- python - 当我们试图拟合来自 pandas 数据帧的数据时,如何找到卷积神经网络的 input_shape?
- python - 使用排除项列表排除在文件列表中找到的某些单词
- python - TypeError:列表索引必须是整数必须是整数,而不是元组
- testing - 使用 TestCafe 窗口管理方法时出现“t.openWindow 不是函数”错误
- firebase-realtime-database - firebase 数据库过滤不起作用。需要一些帮助
- swift - Swift 中的基本身份验证请求