query-f01c6ef8872b5fc64185b3643fb8ab70

rq turtle/ttl

Query server 17:23, 23 January 2020 (UTC) JuraIt seems to show old (yesterday's) cached versions of queries (despite displaying a lag of just a few minutes) or time-out. --- 10:12, 24 January 2020 (UTC)) talk (GLederrey (WMF)Do you have an example of such a query? Running a few of the example queries, I don't see them being cached. But I'm unsure what to check for in term of content. We might have some triples that are not updated as they should. More context would help us understand what might be wrong. 15:00, 2 February 2020 (UTC) JuraThis used to give up to date data. Now it tends to be outdated or fail entirely. However, the later doesn't seem to throw an error. --- I think it may have something to do with the use of the search api with SERVICE wikibase:mwapi : thanks for looking into this. Sorry for not getting back earlier, but I have trouble finding queries that consistently fail.GLederrey (WMF)@: GLederrey (WMF)@

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * WHERE 
{  
  BIND( "Joe haswbstatement:P31=Q5 -haswbstatement:P735" as ?search) 
  SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "www.wikidata.org" ;  wikibase:api "Generator" ;
                      mwapi:generator "search" ;              mwapi:gsrsearch ?search ;
                      mwapi:gsrlimit "max" ;                  mwapi:gsrnamespace "0" .    
      ?article wikibase:apiOutput mwapi:title .
  }
  BIND(URI(CONCAT("http://www.wikidata.org/entity/",?article) )  as ?item)    
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v3("?item"):::projected v1("?search"):::projected c4(["www.wikidata.org"]):::literal c11(["max"]):::literal c13(["0"]):::literal c8(["search"]):::literal c2(["bd:serviceParam"]):::iri c15(["mwapi:title"]):::iri c6(["Generator"]):::literal bind0[/"'Joe haswbstatement:P31=Q5 -haswbstatement:P735'"/] bind0 --as--o v1 subgraph s1["http://wikiba.se/ontology#mwapi"] style s1 stroke-width:4px; c2 --"mwapi:endpoint"--> c4 c2 --"mwapi:api"--> c6 c2 --"mwapi:generator"--> c8 c2 --"mwapi:gsrsearch"--> v1 c2 --"mwapi:gsrlimit"--> c11 c2 --"mwapi:gsrnamespace"--> c13 v2 --"mwapi:apiOutput"--> c15 end bind1[/"concat('http://www.wikidata.org/entity/',?article)"/] v2 --o bind1 bind1 --as--o v3