SPARQL 查询中的注释?
Comments in SPARQL query?
我可以在查询中写评论,这样只有上帝和我自己都记得我在做什么吗?
我刚开始学习SPARQL,请原谅我的无知。
例如:
SELECT ?names
WHERE {
?names dbo:award :Turing_Award // get names that won Turing award
}
会引发解析错误。
也接受否定回答!
我在 http://dbpedia.org/sparql 的 DBpedia 数据集上使用 SPARQL 端点。
Comments in SPARQL queries take the form of '#', outside an IRI or string, and continue to the end of line (marked by characters 0x0D or 0x0A) or end of file if there is no end of line after the comment marker. Comments are treated as white space.
因此,您的示例 SPARQL 片段应为:
SELECT ?names
WHERE {
?names dbo:award :Turing_Award # get names that won Turing award
}
我可以在查询中写评论,这样只有上帝和我自己都记得我在做什么吗?
我刚开始学习SPARQL,请原谅我的无知。
例如:
SELECT ?names
WHERE {
?names dbo:award :Turing_Award // get names that won Turing award
}
会引发解析错误。
也接受否定回答!
我在 http://dbpedia.org/sparql 的 DBpedia 数据集上使用 SPARQL 端点。
Comments in SPARQL queries take the form of '#', outside an IRI or string, and continue to the end of line (marked by characters 0x0D or 0x0A) or end of file if there is no end of line after the comment marker. Comments are treated as white space.
因此,您的示例 SPARQL 片段应为:
SELECT ?names
WHERE {
?names dbo:award :Turing_Award # get names that won Turing award
}