I suspect there is a better way to do it.
Of course both requests without UNION run very fast, one with 56 results ,
the other 6.

PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX void: <http://rdfs.org/ns/void#>
CONSTRUCT {
  ?thing a ?CLASS . }
WHERE {
  ?thing a ?CLASS .
  { ?thing a dcat:Dataset .} UNION
  { ?thing a void:Dataset .}
}


Jean-Marc Vanel
<http://semantic-forms.cc:1952/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me>
+33 (0)6 89 16 29 52
Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui
 Chroniques jardin
<http://semantic-forms.cc:1952/history?uri=http%3A%2F%2Fdbpedia.org%2Fresource%2FChronicle>

Reply via email to