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

TASK DESCRIPTION
  
  
  Steps to Reproduce:
  -------------------
  
  Example 1: Run this query
  
    SELECT *
    WHERE
    {
      SERVICE wikibase:mwapi
      {
        bd:serviceParam wikibase:api "Generator".
        bd:serviceParam wikibase:endpoint "en.wikipedia.org".
        bd:serviceParam wikibase:limit "once".
        bd:serviceParam mwapi:generator "allpages".
        bd:serviceParam mwapi:gapfrom "Cat".
        bd:serviceParam mwapi:gaplimit "1".
        ?item wikibase:apiOutputItem mwapi:item.
        ?title wikibase:apiOutput mwapi:title.
        ?length wikibase:apiOutput "@length".
      }
    }
  
  Example 2: Run this query
  
    SELECT *
    WHERE
    {
      SERVICE wikibase:mwapi
      {
        bd:serviceParam wikibase:api "Generator".
        bd:serviceParam wikibase:endpoint "en.wikipedia.org".
        bd:serviceParam wikibase:limit "once".
        bd:serviceParam mwapi:generator "allpages".
        bd:serviceParam mwapi:gapfrom "Cat".
        bd:serviceParam mwapi:gaplimit "2".
        ?item wikibase:apiOutputItem mwapi:item.
        ?title wikibase:apiOutput mwapi:title.
        ?length wikibase:apiOutput "@length".
      }
    }
  
  
  
  Actual Results:
  ---------------
  
  Example 1: A table with 2 results
  
  Example 2: A table with 4 results
  
  Expected Results:
  -----------------
  
  Example 1: A table with 1 result because the API call gives 1 result due to 
the  use of gaplimit. The API call is: 
https://en.wikipedia.org/w/api.php?action=query&generator=allpages&gapfrom=Cat&gaplimit=1&prop=info|pageprops&ppprop=wikibase_item&format=xml
  
  Example 2: A table with 2 results because the API call gives 2 results due to 
the use of gaplimit: The API call is: 
https://en.wikipedia.org/w/api.php?action=query&generator=allpages&gapfrom=Cat&gaplimit=2&prop=info|pageprops&ppprop=wikibase_item&format=xml
  
  No continuation API calls should be run due to
  
    bd:serviceParam wikibase:limit "once". 
  
  in both examples but in seems like one continuation call was made in both 
examples giving twice as many results as expected.

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

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

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