Lucas_Werkmeister_WMDE added a comment.

  Well, the original query doesn’t tweak the parameters, and by default we 
don’t want to follow too many empty continuations. This query returns results, 
though:
  
    SELECT ?lexeme ?date (GROUP_CONCAT(DISTINCT ?lemma; separator = "/") AS 
?lemmas) WHERE {
      hint:Query hint:optimizer "None".
      SERVICE wikibase:mwapi {
        bd:serviceParam wikibase:endpoint "www.wikidata.org";
                        wikibase:api "Generator";
                        wikibase:limitEmptyContinuations 200;
                        mwapi:generator "allrevisions";
                        mwapi:garvuser "Nikki"; # adjust user name here
                        mwapi:garvnamespace "146";
                        mwapi:garvstart "20191101000000"; # when this issue was 
reported (roughly)
                        mwapi:garvend "20180501000000"; # when lexemes were 
introduced (roughly)
                        mwapi:garvlimit "max".
        ?title wikibase:apiOutput mwapi:title.
      }
      BIND(URI(CONCAT(STR(wd:), STRAFTER(?title, "Lexeme:"))) AS ?lexeme)
      # MINUS { ?lexeme ontolex:sense ?sense. }
      ?lexeme wikibase:lemma ?lemma;
              schema:dateModified ?date.
    }
    GROUP BY ?lexeme ?date
    ORDER BY ASC(?date)
  
  (It’s also pretty close to the timeout, unfortunately.) If you comment out 
the `wikibase:limitEmptyContinuations` parameter, the query finishes much 
faster but only returns one result, because it stopped following the empty 
continuations after 25 API responses.
  
  @Nikki, after uncommenting the `MINUS` line (try it! 
<https://query.wikidata.org/#SELECT%20%3Flexeme%20%3Fdate%20%28GROUP_CONCAT%28DISTINCT%20%3Flemma%3B%20separator%20%3D%20%22%2F%22%29%20AS%20%3Flemmas%29%20WHERE%20%7B%0A%20%20hint%3AQuery%20hint%3Aoptimizer%20%22None%22.%0A%20%20SERVICE%20wikibase%3Amwapi%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Aendpoint%20%22www.wikidata.org%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3Aapi%20%22Generator%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20wikibase%3AlimitEmptyContinuations%20200%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agenerator%20%22allrevisions%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agarvuser%20%22Nikki%22%3B%20%23%20adjust%20user%20name%20here%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agarvnamespace%20%22146%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agarvstart%20%2220191101000000%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agarvend%20%2220180501000000%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mwapi%3Agarvlimit%20%22max%22.%0A%20%20%20%20%3Ftitle%20wikibase%3AapiOutput%20mwapi%3Atitle.%0A%20%20%7D%0A%20%20BIND%28URI%28CONCAT%28STR%28wd%3A%29%2C%20STRAFTER%28%3Ftitle%2C%20%22Lexeme%3A%22%29%29%29%20AS%20%3Flexeme%29%0A%20%20MINUS%20%7B%20%3Flexeme%20ontolex%3Asense%20%3Fsense.%20%7D%0A%20%20%3Flexeme%20wikibase%3Alemma%20%3Flemma%3B%0A%20%20%20%20%20%20%20%20%20%20schema%3AdateModified%20%3Fdate.%0A%7D%0AGROUP%20BY%20%3Flexeme%20%3Fdate%0AORDER%20BY%20ASC%28%3Fdate%29>),
 it returns 23 remaining lexemes you created that don’t have a sense yet.

TASK DETAIL
  https://phabricator.wikimedia.org/T209034

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Smalyshev, Lucas_Werkmeister_WMDE
Cc: gerritbot, Aklapper, Smalyshev, Lucas_Werkmeister_WMDE, Nikki, 
darthmon_wmde, DannyS712, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, 
EBjune, merbst, LawExplorer, _jensen, rosalieper, Cirdan, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to