问题描述
我将运行以下查询:SELECT DISTINCT ?id str(?name)
但是Fuseki给我这个错误:该行无效.预期的(VAR1 ...
我需要一个字符串值?name
.
I would run this query: SELECT DISTINCT ?id str(?name)
but Fuseki give me this error: This line is invalid.Expected ( VAR1...
I would need a string value of ?name
.
推荐答案
我想您正在谈论这样的事情.
I suppose you are talking about something like this.
此消息是由Fuseki组件YASGUI(或更确切地说是YASQE)产生的警告.
This message is a warning produced by Fuseki component called YASGUI (or rather YASQE).
您有两个选择:
-
使用更多符合标准语法,i. e.
SELECT DISTINCT ?id (str(?name) AS ?str_name)
等
Use more conformant syntax, i. e.
SELECT DISTINCT ?id (str(?name) AS ?str_name)
etc.
忽略此警告并运行查询,Jena ARQ应该接受它并返回结果.
Ignore this warning and run your query, Jena ARQ should accept it and return a result.
这篇关于Apache Fuseki:调用str函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!