Hi Peter,

This isn't perfect as there's a race condition in the Blazegraph code if
the query runs "too fast" [1], but if I understood the question correctly,
would something like the following help?

curl https://query.wikidata.org/sparql \
   -d "query= SELECT * WHERE { ?s ?p ?o } limit 1000" \
   -d "explain" -o ~/explainSimple.html

( equivalent GET URL:
https://query.wikidata.org/sparql?explain&query=select%20*%20where%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20limit%201000
)

curl https://query.wikidata.org/sparql \
   -d "query= SELECT * WHERE { ?s ?p ?o } limit 1000" \
   -d "explain=details" -o ~/explainDetails.html

( equivalent GET URL:
https://query.wikidata.org/sparql?explain=details&query=select%20*%20where%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20limit%201000
)

-Adam

[1]
https://gerrit.wikimedia.org/r/plugins/gitiles/wikidata/query/blazegraph/+/74ac5c44537fa9f2bec5949207e57aa7ad401162/bigdata-core/bigdata-sails/src/java/com/bigdata/rdf/sail/webapp/QueryServlet.java#1354

[2] https://github.com/blazegraph/database/wiki/Explain

On Fri, Sep 6, 2024 at 10:11 AM Peter F. Patel-Schneider <
[email protected]> wrote:

> Is there a way to get the Wikidata Query Service to report the total time
> taken to evaluate a query?  This would be better than estimating the time
> from
> the elapsed time between a request and the beginning of a response.
>
>
> peter
> _______________________________________________
> Wikidata mailing list -- [email protected]
> Public archives at
> https://lists.wikimedia.org/hyperkitty/list/[email protected]/message/6M3BGBUBOEEFUP2IVLX3XYD3YZTZR4OW/
> To unsubscribe send an email to [email protected]
>
_______________________________________________
Wikidata mailing list -- [email protected]
Public archives at 
https://lists.wikimedia.org/hyperkitty/list/[email protected]/message/CRYUEEAIILNVVL6XLAFHVU367WQJOBXV/
To unsubscribe send an email to [email protected]

Reply via email to