query-d1d8621d14e1f054c590d6c8da5d843f
Llista el valor de diversos labels
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemLabel_ga ?instancia_de ?instancia_deLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". }
?item (wdt:P131*) wd:Q25;
rdfs:label ?itemLabel_ga.
FILTER((LANG(?itemLabel_ga)) = "ga")
OPTIONAL { ?item wdt:P31 ?instancia_de. }
}
LIMIT 5000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?instancia_de"):::projected
v2("?item"):::projected
v1("?itemLabel_ga"):::projected
c3(["bd:serviceParam"]):::iri
c5(["ca"]):::literal
c7(["wd:Q25"]):::iri
f0[["?itemLabel_ga = 'ga'"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v2 --"wdt:P131"--> c7
v2 --"rdfs:label"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v3
end