MichaelSchoenitzer created this task.
MichaelSchoenitzer added a project: Wikidata Query UI.
Herald added a subscriber: Aklapper.
Herald added a project: Wikidata.

TASK DESCRIPTION

When showing strings got by wikidata query in the result view of wikidata query UI newlines are replaced by spaces. This inhibits several useful applications.

For example I sometimes would like to list all found values for one variable below each other by GROUP_CONCAT(distinct ?repo; separator="\n"). This does not work neither does separator="<br/>" work since tags is escaped. (Disallowing HTML is probably a good idea.)

Proposed solution: show \n as <br/> in the output.

Full example where it would be useful:

PREFIX schema: <http://schema.org/>

SELECT ?project ?projectLabel (GROUP_CONCAT(distinct ?repo; separator="\n") as ?repos) (COUNT(distinct ?repo) as ?repo_count) WHERE {
  ?project wdt:P1324 ?repo.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
GROUP BY ?project ?projectLabel
HAVING (?repo_count > 1)
ORDER BY ?projectLabel

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

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

To: MichaelSchoenitzer
Cc: MichaelSchoenitzer, Aklapper, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to