query-4e3c9f3b24bfa77ec03324c3ea2efb76

rq turtle/ttl

Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } } Combine the Wikidata Query Service and the OpenStreetMap Sophox query service PREFIX osmnode: https://www.openstreetmap.org/node/ PREFIX osmway: https://www.openstreetmap.org/way/ PREFIX osmrel: https://www.openstreetmap.org/relation/ PREFIX osmt: https://wiki.openstreetmap.org/wiki/Key: PREFIX osmm: https://www.openstreetmap.org/meta/ PREFIX pageviews: https://dumps.wikimedia.org/other/pageviews/ PREFIX osmd: http://wiki.openstreetmap.org/entity/ PREFIX osmdt: http://wiki.openstreetmap.org/prop/direct/ PREFIX osmp: http://wiki.openstreetmap.org/prop/ PREFIX osmps: http://wiki.openstreetmap.org/prop/statement/ PREFIX osmpq: http://wiki.openstreetmap.org/prop/qualifier/

SELECT * WHERE { BIND(wd:Q28695 as ?wd) SERVICE https://sophox.org/sparql { ?osmid osmt:wikidata ?wd; osmt:building ?building; ?a ?b } }

Use at

PREFIX wd: <http://www.wikidata.org/entity/>
#Combine the Wikidata Query Service and the OpenStreetMap Sophox query service
PREFIX osmnode: <https://www.openstreetmap.org/node/>
PREFIX osmway: <https://www.openstreetmap.org/way/>
PREFIX osmrel: <https://www.openstreetmap.org/relation/>
PREFIX osmt: <https://wiki.openstreetmap.org/wiki/Key:>
PREFIX osmm: <https://www.openstreetmap.org/meta/>
PREFIX pageviews: <https://dumps.wikimedia.org/other/pageviews/>
PREFIX osmd: <http://wiki.openstreetmap.org/entity/>
PREFIX osmdt: <http://wiki.openstreetmap.org/prop/direct/>
PREFIX osmp: <http://wiki.openstreetmap.org/prop/>
PREFIX osmps: <http://wiki.openstreetmap.org/prop/statement/>
PREFIX osmpq: <http://wiki.openstreetmap.org/prop/qualifier/>

SELECT * WHERE {
  BIND(wd:Q28695 as ?wd)
  SERVICE <https://sophox.org/sparql> {
  ?osmid osmt:wikidata ?wd;
         osmt:building ?building;
         ?a ?b
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?a"):::projected v5("?b"):::projected v3("?building"):::projected v2("?osmid"):::projected v1("?wd"):::projected bind0[/"'wd:Q28695'"/] bind0 --as--o v1 subgraph s1["https://sophox.org/sparql"] style s1 stroke-width:4px; v2 --https://wiki.openstreetmap.org/wiki/Key:wikidata--> v1 v2 --https://wiki.openstreetmap.org/wiki/Key:building--> v3 v2 -->v4--> v5 end