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

TASK DESCRIPTION

From shell

I would expect to retrieve an HTML table of results when I submit a query like https://query.wikidata.org/sparql?query=SELECT%20%3Fvar1%20%3Fvar2%20WHERE%20%7B%20%3Fvar1%20%3Fvar2%20%3Fvar3%20%7D%20LIMIT%202 with header Accept: text/html, but I get the default non-HTML XML content:

$ curl -H 'Accept: text/html' -- 'https://query.wikidata.org/sparql?query=SELECT%20%3Fvar1%20%3Fvar2%20WHERE%20%7B%20%3Fvar1%20%3Fvar2%20%3Fvar3%20%7D%20LIMIT%202'
<?xml version='1.0' encoding='UTF-8'?>
<sparql xmlns='http://www.w3.org/2005/sparql-results#'>
	<head>
		<variable name='var1'/>
		<variable name='var2'/>
	</head>
	<results>
		<result>
			<binding name='var1'>
				<uri>http://wikiba.se/ontology#Dump</uri>
			</binding>
			<binding name='var2'>
				<uri>http://creativecommons.org/ns#license</uri>
			</binding>
		</result>
		<result>
			<binding name='var1'>
				<uri>http://wikiba.se/ontology#Dump</uri>
			</binding>
			<binding name='var2'>
				<uri>http://schema.org/softwareVersion</uri>
			</binding>
		</result>
	</results>
</sparql>



From the Wikidata Query UI

I would expect to have an option "HTML table" in the menu "Download" that lets me download the results of my query as an HTML file.

F14011993: download.png

Expected content

I would expect the downloaded content to include a static HTML table like:

<table>
    <tr>
        <th>?var1</th>
        <th>?var2</th>
    </tr>
    <tr>
        <td>...</td>
        <td>...</td>
    </tr>
    <tr>
        <td>...</td>
        <td>...</td>
    </tr>
</table>

... should contain hyperlinks, if applicable, with the same href values (stable URIs) that are retrieved by default with the Wikidata Query UI.


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

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

To: abian
Cc: Aklapper, abian, Gq86, Lucas_Werkmeister_WMDE, EBjune, merbst, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to