Page MenuHomePhabricator

WDQS fails to deliver all subclasses of Gene (Q7187)
Closed, ResolvedPublic


WDQS fails to deliver all subclasses of Gene (Q7187)

PREFIX wd: <> 
PREFIX wdt: <>
SELECT ?subClass WHERE {
   ?subClass wdt:P279/wdt:P279* wd:Q7187 .


It provides nicely for any other WDCM semantic class.

Event Timeline

PREFIX wd: <> 
PREFIX wdt: <> 
SELECT ?item WHERE {?item (wdt:P31|(wdt:P31/wdt:P279*)) wd:Q7187.  }


Could somebody please advise? This worked until September.

Smalyshev claimed this task.

Looks like this query times out. Try using BFS, like this:

SELECT ?subClass WHERE {
  SERVICE gas:service {
     gas:program gas:gasClass "" .
     gas:program gas:in wd:Q7187 .
     gas:program gas:out ?subClass .
     gas:program gas:linkType wdt:P279 .
     gas:program gas:traversalDirection "Reverse" .

Given that there are over 500K results, timeout is not surprising.

Side note: some timeouts can produce partial results if the timing is just right (wrong). Looks like depending on browser and protocol, it may be very hard for the GUI to detect what happened in that case (all it gets is "something wrong happened with the request") so you get a generic "Server Error" message. The usual clue is if it takes around a minute and it's "Server Error" then it's almost certainly timeout with partial result.

@Smalyshev I have reopened the task to say: thank you.

Also, in T202988#4557700 you were right on the observation of my main concern: namely, it was not reported as a timeout - rather as a server error. I have to admit that I've been confused.

Finally, please: I don't like running SPARQL queries that I do not understand fully. I've found out the following documentation: Could you please advise on any other place where I could learn more about gas:service? Again, thanks a lot.

gas:service is a Blazegraph extension documented here:

There's also a User Manual: but it does not document these things, only refers to them, using the original docs is the best way now.

Partial results issues are tracked as T169666: Render partial results.

@Smalyshev Once again: thanks a lot!
@Lydia_Pintscher: thank you for your support!