query-a1c71caf66957a22f62cc1551ed92b3a
title: get articles and coordinates by ISO1 SELECT distinct ?articlename ?item ?itemLabel ?coord WHERE { ?country wdt:P297 "AT". ?item wdt:P17 ?country; wdt:P625 ?coord . ?article schema:about ?item . ?article schema:isPartOf https://de.wikipedia.org/ ; schema:name ?articlename . SERVICE wikibase:label { bd:serviceParam wikibase:language "de" } } GROUP BY ?articlename ?item ?itemLabel ?coord ORDER BY ASC(?articlename) limit 400
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: get articles and coordinates by ISO1
SELECT distinct ?articlename ?item ?itemLabel ?coord WHERE {
?country wdt:P297 "AT".
?item wdt:P17 ?country; wdt:P625 ?coord .
?article schema:about ?item .
?article schema:isPartOf <https://de.wikipedia.org/> ;
schema:name ?articlename .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de" }
} GROUP BY ?articlename ?item ?itemLabel ?coord ORDER BY ASC(?articlename)
limit 400
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article")
v1("?articlename"):::projected
v4("?coord"):::projected
v2("?country")
v3("?item"):::projected
c7([https://de.wikipedia.org/]):::iri
c12(["de"]):::literal
c2(["AT"]):::literal
c10(["bd:serviceParam"]):::iri
v2 --"wdt:P297"--> c2
v3 --"wdt:P17"--> v2
v3 --"wdt:P625"--> v4
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> c7
v5 --"schema:name"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end