query-4e3c9f3b24bfa77ec03324c3ea2efb76
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
- https://query.wikidata.org/sparql
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
- https://www.wikidata.org/wiki/Wikidata:OpenStreetMap/Tools
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/advanced/zh