Query that shows how Triply Templating can be used to simplify SPARQL queries with complex literals. This is specifically useful for SPARQL queries that return HTML literals, which can be rather complex.
This query is a simplified version of this query that does not use Triply Templating.
This query is similar to query 3-2-implicit, but uses anonymous node notation in order to omit the
?pokemon subject term variable. By doing so, the meaning of this query is significantly changed, as can be seen by the result set.
How to read the aggregation in this query?
- We are dealing with aggregation, because at least one aggregation function (
group byclause appears, so we are dealing with implicit grouping.
- Implicit grouping means grouping around the set of variables that are visible and not argument to an aggregation function. In this case, this set of variables is ∅ (the empty set).
- Grouping based on the empty set means that all results are part one one big group. So this query counts the number of names in the entire dataset.
This query is similar to query 3.2, but uses implicit grouping.
Implicit grouping occurs when at least one aggregation function is used (in this case
count) and no
group by clause is given. In this case, grouping is performed based on the set of visible variables that are not themselves arguments to an aggregation function. In this query, implicit grouping result in grouping around the