【发布时间】:2017-12-23 14:51:25
【问题描述】:
我在marklogic学习资料中发现了以下查询:
PREFIX mo: <http://mlu.marklogic.com/ontology/>
SELECT ?country ?max
FROM <http://mlu.marklogic.com/populations>
WHERE {
{
SELECT (MAX(?pop) as ?max)
WHERE {?country mo:population ?pop}
}
{
?country mo:population ?pop . ?country mo:population ?max
}
}
我将其替换为:
select ?country ?max
from <http://mlu.marklogic.com/populations>
where{
{
select (MAX(?pop) as ?max)
where {?country mo:population ?pop}
}
{?country mo:population ?max}
}
似乎两个查询都返回了相同的结果。那么第一个查询中的 and 语句是否重要?我错过了什么吗?
【问题讨论】:
标签: sparql marklogic semantics