不要打印查询中使用的变量

时间:2015-11-28 22:36:04

标签: web printing rdf sparql resultset

我有这样的查询:

SELECT ?names ?country ?city
WHERE {
  ...
}

然而,我的hw说只打印姓名和城市,而不是国家。如何让SPARQL不在结果集中包含?country

如果无法完成,我当然想知道,以便我可以停止搜索Google。

1 个答案:

答案 0 :(得分:3)

从查询中删除for (int x = 2; x < 10; ++x) { if (is_happy(x)) //Let the function do the logic, we just need true or false ++happy_number; } ,以防止打印出来:

?country