On 06.10.20 16:24, Jean-Marc Vanel wrote:

> 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 .}
> }

UNION surely works but for that use-case I like the VALUES keyword, I
think this should be equivalent:

WHERE {
  VALUES ?type { dcat:Dataset void:Dataset }
  ?thing a ?type
}

regards

Adrian

Reply via email to