← every query · class 09 · queries/portuguese-products-inferred.rq
Portuguese products, by the defined class alone
0 rows without the reasoner, 3 rows with it. Switch the regime to see where the difference comes from.
(zero rows) — an empty answer is not an error: in an open world, nothing matched.
The query
# The same question as Q1, but relying on the reasoner: the class
# onto:PortugueseProduct is asserted nowhere. Without inference it returns zero
# rows; with inference it returns the Portuguese products.
PREFIX onto: <https://data.csoares.me/onto#>
SELECT ?p
WHERE {
?p a onto:PortugueseProduct .
}
ORDER BY ?p