If you want to handle both triples (default graph) and quads (named
graphs), you should use a UNION:
ASK WHERE {
{ <my-specific-URI> ?p ?o } UNION { GRAPH ?g { <my-specific-URI> ?p ?o } }
}
On Mon, May 15, 2017 at 1:48 PM, Laurent Rucquoy
<[email protected]> wrote:
> Hello,
>
> I want to write a SPARQL query to attest the existence of a specific URI in
> a TDB.
>
> Is the following query the right way to do this (considering notably the
> execution performances with big volumes) ?
>
> ASK WHERE {
> <my-specific-URI> ?p ?o .
> }
>
> Thank you in advance for your help,
>
> Laurent