Page MenuHomePhabricator

URL shortening failed
Open, LowPublic

Description

image.png (376×521 px, 17 KB)

Possibly due to a long query?

We should check if this is the case
We should also see if the can improve the situation?

https://query.wikidata.org/#%23defaultView%3AGraph%0A%23%20Doctoral%20student%2Fadvisor%20network%20with%20a%20source%20from%20a%20spectific%20researcher%0APREFIX%20gas%3A%20%3Chttp%3A%2F%2Fwww.bigdata.com%2Frdf%2Fgas%23%3E%0A%0ASELECT%20DISTINCT%20%3Fstudent1%20%3Fstudent1Label%20%3Fsupervisor1%20%3Fsupervisor1Label%0AWHERE%20%7B%0A%20%20%7B%20%0A%20%20%20%20SELECT%20%3Fstudent1%20%3Fsupervisor1%20%28MIN%28%3Fdepth1%29%20as%20%3Fdepth%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20SERVICE%20gas%3Aservice%20%7B%0A%20%20%20%20%20%20%20%20gas%3Aprogram%20gas%3AgasClass%20%22com.bigdata.rdf.graph.analytics.BFS%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Ain%20wd%3AQ21562060%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AtraversalDirection%20%22Forward%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout%20%3Fstudent1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout1%20%3Fdepth1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout2%20%3Fsupervisor1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AlinkType%20wdt%3AP185%20%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3Fstudent1%20%3Fsupervisor1%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%20%0A%20%20%20%20SELECT%20%3Fstudent1%20%3Fsupervisor1%20%28MIN%28%3Fdepth1%29%20as%20%3Fdepth%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20service%20gas%3Aservice%20%7B%0A%20%20%20%20%20%20%20%20gas%3Aprogram%20gas%3AgasClass%20%22com.bigdata.rdf.graph.analytics.BFS%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Ain%20wd%3AQ21562060%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AtraversalDirection%20%22Forward%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout%20%3Fsupervisor1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout1%20%3Fdepth1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout2%20%3Fstudent1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AlinkType%20wdt%3AP184%20%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3Fstudent1%20%3Fsupervisor1%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%20%0A%20%20%20%20SELECT%20%3Fstudent1%20%3Fsupervisor1%20%28MIN%28%3Fdepth1%29%20as%20%3Fdepth%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20SERVICE%20gas%3Aservice%20%7B%0A%20%20%20%20%20%20%20%20gas%3Aprogram%20gas%3AgasClass%20%22com.bigdata.rdf.graph.analytics.BFS%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Ain%20wd%3AQ21562060%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AtraversalDirection%20%22Reverse%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout%20%3Fstudent1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout1%20%3Fdepth1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout2%20%3Fsupervisor1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AlinkType%20wdt%3AP184%20%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3Fstudent1%20%3Fsupervisor1%0A%20%20%7D%0A%20%20UNION%0A%20%20%7B%20%0A%20%20%20%20SELECT%20%3Fstudent1%20%3Fsupervisor1%20%28MIN%28%3Fdepth1%29%20as%20%3Fdepth%29%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20SERVICE%20gas%3Aservice%20%7B%0A%20%20%20%20%20%20%20%20gas%3Aprogram%20gas%3AgasClass%20%22com.bigdata.rdf.graph.analytics.BFS%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Ain%20wd%3AQ21562060%20%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AtraversalDirection%20%22Reverse%22%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout%20%3Fsupervisor1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout1%20%3Fdepth1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3Aout2%20%3Fstudent1%20%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20gas%3AlinkType%20wdt%3AP185%20%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3Fstudent1%20%3Fsupervisor1%0A%20%20%7D%0A%20%20%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%2Cda%2Csv%2Cjp%2Czh%2Cru%2Cfr%2Cde%22%20.%20%20%7D%20%0A%7D%0A

Event Timeline

I guess there could be a solution to this without needing to extend the limit of the URL shortener, so I wont merge it in as a dupe for now.

Possible solution could be for the UI to have a bit more functionality, and save the query essentially to a pastebin somewhere (or some storage) and then be able to retrieve it with a much shorter ID rather than the full query in the URL.
This might end up tying in with possible future query service UI work etc :)

Re. the "pastebin somewhere" idea: For our "SPARQL Lab", we use a mechanism to load queries from Github (or alternatively from an internal git repository). That has the additional advantage that the queries can be updated under a constant URL, discussed, forked etc. For details and links see https://zbw.eu/labs/en/blog/publishing-sparql-queries-live