Hi,
I wanted to test the use of the queries below to list named graphs (if any) in wikidata service [a]. I've tried them without success: 

1- select distinct ?g { graph ?g {} }
2- select distinct ?g { graph ?g {?s ?p ?o} } 
3- select (count(distinct ?g) as ?count) { graph ?g {} } 

Are those queries not standard or just taking too much time because of the underlying dataset | time out settings? 

In general, is there a way to reduce the time execution of such "useful" query in public endpoints with billions of data

TIA
Best,
Ghislain
PS: I note that there are errors when trying to use DBpedia endpoint for queries #1 and #3. The result of query #2 is a bit strange. 
[a] https://query.wikidata.org/ 

--
-------
"Love all, trust a few, do wrong to none" (W. Shakespeare)
Web: http://atemezing.org