Page MenuHomePhabricator

TSV format export in WDQS GUI does not match the spec
Closed, ResolvedPublic1 Estimated Story Points

Description

TSV export does not conform to http://www.w3.org/TR/sparql11-results-csv-tsv/#tsv. Try for instance SELECT * WHERE { wd:Q1 ?p ?o } LIMIT 4. Expected output:

?p	?o
<http://schema.org/version>	"255220663"
<http://schema.org/dateModified>	"2015-10-06T19:45:26Z"
<http://schema.org/description>	"al die planete, sterre, sterrestelsels en intergalaktiese ruimtes, asook alle energie en materie"@af
<http://schema.org/description>	"\u0645\u0631\u062C\u0639"@ar

instead of

p	o
http://schema.org/version	255220663
http://schema.org/dateModified	2015-10-06T19:45:26Z
http://schema.org/description	al die planete, sterre, sterrestelsels en intergalaktiese ruimtes, asook alle energie en materie
http://schema.org/description	مرجع

Event Timeline

Smalyshev claimed this task.
Smalyshev raised the priority of this task from to Medium.
Smalyshev updated the task description. (Show Details)
Smalyshev subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@nichtich We're assessing the priority of this task. @Smalyshev said that this task was based on another you filed. Could you expand on whether this task is simply a quality of life improvement, or whether it's blocking you from using the service? Thank you!

This does not block me from using the service, as my client can produce valid SPARQL TSV output from SPARQL JSON output. It's a nasty violation of of SPARQL specification.

Change 245626 had a related patch set uploaded (by Smalyshev):
Fix TSV format export

https://gerrit.wikimedia.org/r/245626

Change 245626 merged by jenkins-bot:
Fix TSV format export

https://gerrit.wikimedia.org/r/245626