Smalyshev created this task.
Smalyshev added a project: Wikidata-Query-Service.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: Wikidata.

TASK DESCRIPTION
  For this user query:
  
    SELECT distinct ?ordinal ?item ?itemLabel ?itemDescription ?image WHERE {
      SERVICE wikibase:mwapi {
        bd:serviceParam wikibase:api "EntitySearch";
                        wikibase:endpoint "www.wikidata.org";
                        mwapi:search "Patriots";
                        mwapi:limit 1000;
                        mwapi:language "en" .
        ?item wikibase:apiOutputItem mwapi:item .
        ?ordinal wikibase:apiOrdinal true .
      } 
      ?item wdt:P31/wdt:P279* ?type.
      OPTIONAL{?item wdt:P18 ?image .}
      FILTER( ?type in (wd:Q5, wd:Q17537576, wd:Q12973014))
      SERVICE wikibase:label { bd:serviceParam wikibase:language 
"[AUTO_LANGUAGE],en". }
    } ORDER BY ASC (?ordinal) LIMIT 100
  
  MWAPI continuation does not work.
  
  According to @Lucas_Werkmeister_WMDE the reason is:
  
  MWAPI doesn’t support continuation for EntitySearch at all – in the source 
code, MWApiServiceCall.parseContinue() only looks at `//api/continue` in the 
response XML (with a “TODO support other options?”), but 
`action=wbsearchentities` returns a custom `search-continue` property
  
  We need to add support for this in MWAPI.

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

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

To: Smalyshev
Cc: Aklapper, Smalyshev, Lucas_Werkmeister_WMDE, darthmon_wmde, DannyS712, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, 
_jensen, rosalieper, 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