query-1c86aa8ee3b988ec4f42fa3ad9bfcd46
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#etiquetes i descripcions ca i en d'items de Catalunya que tenen coordenades
SELECT DISTINCT ?item ?nameca ?nameen ?descca ?descen
WHERE {
?item wdt:P17 wd:Q29.
?item wdt:P131* wd:Q5705.
?item wdt:P625 [].
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ca" .
?item rdfs:label ?nameca.
?item schema:description ?descca.
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en".
?item rdfs:label ?nameen.
?item schema:description ?descen.
}
}
#ORDER BY ASC (?name)
#defaultView:Table
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?descca"):::projected
v5("?descen"):::projected
v1("?item"):::projected
v2("?nameca"):::projected
v4("?nameen"):::projected
a1((" "))
c4(["wd:Q5705"]):::iri
c2(["wd:Q29"]):::iri
c7(["bd:serviceParam"]):::iri
c12(["en"]):::literal
c9(["ca"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P131"--> c4
v1 --"wdt:P625"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
v1 --"rdfs:label"--> v2
v1 --"schema:description"--> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c12
v1 --"rdfs:label"--> v4
v1 --"schema:description"--> v5
end