We can now compare a predicate binding to a predicate literal inside the HAVING clause (only equalities allowed) to filter the results of our query.
To illustrate, the following query is now possible:
SELECT ?s, ?p, ?o
FROM ?test
WHERE {
?s ?p ?o
}
HAVING ?p = "height_cm"@[];
Note that predicate inequalities are not allowed because their behavior may become confusing for the user (especially when time anchors come on stage). In this case an error is prompted orienting to extract bindings with the ID/AT keywords and to use these bindings to proceed with the comparisons in a clearer way.
We can now compare a predicate binding to a predicate literal inside the
HAVING
clause (only equalities allowed) to filter the results of our query.To illustrate, the following query is now possible:
Note that predicate inequalities are not allowed because their behavior may become confusing for the user (especially when time anchors come on stage). In this case an error is prompted orienting to extract bindings with the
ID
/AT
keywords and to use these bindings to proceed with the comparisons in a clearer way.