Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, Wikidata-Query-Service. Restricted Application added a subscriber: Aklapper. |
The following query should return all Lexeme revisions by @Nikki (uncomment line 13 to turn it into a more useful query):
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"; mwapi:generator "allrevisions"; mwapi:garvuser "Nikki"; # adjust user name here mwapi:garvnamespace "146"; 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)
However, it only returns a few results (though the exact number varies as @Nikki continues to edit). When I try the equivalent query in the API sandbox, I notice that after the first page of results, I get (when I click the handy “continue” button) a few empty pages before more results arrive. I suspect that WDQS terminates continuation after the first empty continuation page, assuming that no more results will arrive – but this is incorrect, according to the following note on the garvnamespace parameter:
Note: Due to miser mode, using this may result in fewer than arvlimit results returned before continuing; in extreme cases, zero results may be returned.
Cc: Aklapper, Smalyshev, Lucas_Werkmeister_WMDE, Nikki, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, 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