Wikidata talk:SPARQL query service/Wikidata Query Help/Result Views

From Wikidata
Jump to navigation Jump to search

What is the URL for the simple JSON format "JSON file" for API? "format=json" gives a standard long format with "results", "bindings", etc. — Finn Årup Nielsen (fnielsen) (talk) 15:10, 8 February 2017 (UTC)

wrong page[edit]

"Embed Mode" and "Download results" should be at Wikidata:SPARQL query service/A gentle introduction to the Wikidata Query Service d1g (talk) 08:58, 22 May 2017 (UTC)

More details please[edit]

I tried to get informations on how to change de view results of maps. The reading of this section don't really help me. Do someone who know these things can developp more ? Or show me how to show the pink color of P465 of this :

#Metro lines in Montreal, Quebec, Canada
#defaultView:Map{"layer": "?rgb"}
SELECT ?station ?stationLabel ?line ?lineLabel ?rgb ?coord ?image
  ?line wdt:P81 wd:Q43298334 ;
        wdt:P625 ?coord.
OPTIONAL { ?line wdt:P465 ?rgb. }
#  ?station wdt:P81 ?line;
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" . }

Try it!

Thank you. Simon Villeneuve (talk) 13:33, 25 April 2018 (UTC)