But putting the most general criterion ?thing a ?CLASS . at the end fixes the issue !!! :) .
I thought that the Jena optimizer would do it by itself .... Jean-Marc Vanel <http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> +33 (0)6 89 16 29 52 Le mar. 6 oct. 2020 à 16:24, Jean-Marc Vanel <[email protected]> a écrit : > 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> > >
