Ask SPARQL queries
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX : <http://citydata.wu.ac.at/ns#> SELECT DISTINCT ?city ?year ?indicator ?value ?source WHERE { GRAPH ?G { [] :spatialContext ?city ; ?P ?value ; :source ?source ; :dateValidity ?D . BIND(YEAR(?D) as ?year) } ?P rdfs:subPropertyOf ?indicator . VALUES ?city { <http://citydata.wu.ac.at/resource/Vienna> <http://citydata.wu.ac.at/resource/Berlin> } VALUES ?indicator { :population :population_female } } ORDER BY ?city DESC(?year) ?indicator
Output:
Text
JSON
XML
CSV
TSV
If XML output, add XSLT style sheet (blank for none):
xml-to-html
xml-to-html-links
xml-to-html-plain
Force the accept header to
text/plain
regardless.