WikidataFacts created this task.
WikidataFacts added projects: Wikidata, Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added a project: Discovery.

TASK DESCRIPTION

Minimal reproducer:

#defaultView:LineChart
SELECT ?x ?y ?c WHERE {
  VALUES (?x ?y ?c) {
    (1 1 "")
    (2 2 "")
  }
}

This should show a line from (1,1) to (2,2); instead it shows a single dot at (3,3).

A more realistic example, by @Fnielsen:

#defaultView:LineChart
SELECT ?year (count(distinct ?citing_work) as ?count) ?author ?authorLabel  WHERE {
  VALUES ?author { wd:Q6758402 wd:Q20980928 }
  { 
    SELECT ?author (MIN(?work_year) AS ?first_year) WHERE {
      ?work wdt:P50 ?author .
      ?work wdt:P577 ?work_publication_datetime . 
      BIND(YEAR(?work_publication_datetime) AS ?work_year)
    }
    GROUP BY ?author
  }
  ?work wdt:P50 ?author .
  ?citing_work wdt:P2860 ?work .
  ?citing_work wdt:P577 ?date .
  BIND(YEAR(?date) - ?first_year AS ?year) 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} 
GROUP BY ?author ?year ?first_year ?authorLabel
ORDER BY (?year)

This should show more than just two points connected by a straight line.


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

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

To: WikidataFacts
Cc: Aklapper, WikidataFacts, Fnielsen, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, 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