query-0558fa9cba8b495ef9f779e418014f8e
gegants SELECT ?item ?itemLabel ?lloc ?llocLabel ?estatLabel ?imatge ?representa ?representaLabel ?massa { { SELECT * { ?item wdt:P31 wd:Q340069 . OPTIONAL {?item wdt:P131 ?lloc} OPTIONAL {?item wdt:P17 ?estat} OPTIONAL {?item wdt:P180 ?representa} OPTIONAL {?item wdt:P18 ?imatge} OPTIONAL {?item wdt:P2067 ?massa} } } SERVICE wikibase:label { bd:serviceParam wikibase:language "ca,en,de,fr,ja,es,ru,pt,it,zh,fa,ar,pl,nl,uk,tr,id,he,cs,sv,hu,fi,vi,ko,el,hi,bn,no,ca,ro,th,da,sr,bg,az,ms,et,uz,hr,sk,eu,hy,sl,lt,eo,ta,kk,lv,be,kn,sq,ur,mk" . } }
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 bd: <http://www.bigdata.com/rdf#>
# gegants
SELECT ?item ?itemLabel ?lloc ?llocLabel ?estatLabel ?imatge ?representa ?representaLabel ?massa {
{
SELECT * {
?item wdt:P31 wd:Q340069 .
OPTIONAL {?item wdt:P131 ?lloc}
OPTIONAL {?item wdt:P17 ?estat}
OPTIONAL {?item wdt:P180 ?representa}
OPTIONAL {?item wdt:P18 ?imatge}
OPTIONAL {?item wdt:P2067 ?massa}
}
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "ca,en,de,fr,ja,es,ru,pt,it,zh,fa,ar,pl,nl,uk,tr,id,he,cs,sv,hu,fi,vi,ko,el,hi,bn,no,ca,ro,th,da,sr,bg,az,ms,et,uz,hr,sk,eu,hy,sl,lt,eo,ta,kk,lv,be,kn,sq,ur,mk" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?estat")
v5("?imatge"):::projected
v1("?item"):::projected
v2("?lloc"):::projected
v6("?massa"):::projected
v4("?representa"):::projected
c11(["ca,en,de,fr,ja,es,ru,pt,it,zh,fa,ar,pl,nl,uk,tr,id,he,cs,sv,hu,fi,vi,ko,el,hi,bn,no,ca,ro,th,da,sr,bg,az,ms,et,uz,hr,sk,eu,hy,sl,lt,eo,ta,kk,lv,be,kn,sq,ur,mk"]):::literal
c2(["wd:Q340069"]):::iri
c9(["bd:serviceParam"]):::iri
v1 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P180".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2067".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end