← 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. The highlighted rows exist only under OWL 2 RL.

?p
product:17
product:23
product:31

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

Edit it in the query box →