query-50a3a92012b20a7ffb26f6be7b8f3429
PropertiesWikimedia database name (P1800)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?TemplateURL ?TemplateTitle ?lang ?Wikigroup ?wikiLabel
#?Wiki ?WikiLabel ?WikiURL
WHERE {
VALUES ?Template {
wd:Q83761248
}
?TemplateURL schema:about ?Template;
schema:inLanguage ?lang ;
# schema:isPartOf ?WikiURLÂ ;
schema:isPartOf [ wikibase:wikiGroup ?Wikigroup ] ;
schema:name ?TemplateTitle.
BIND(IF(?Wikigroup in ("wikipedia","commons","species","wikidata","meta","incubator"),CONCAT(?lang,"wiki"),CONCAT(?lang,?Wikigroup)) as ?wikilang)
?wiki wdt:P1800 ?wikilang.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?Template")
v5("?TemplateTitle"):::projected
v2("?TemplateURL"):::projected
v4("?Wikigroup"):::projected
v3("?lang"):::projected
v7("?wiki")
v6("?wikilang")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?Template/]
bind0-->v1
bind00(["wd:Q83761248"])
bind00 --> bind0
v2 --"schema:about"--> v1
v2 --"schema:inLanguage"--> v3
a1 --"wikibase:wikiGroup"--> v4
v2 --"schema:isPartOf"--> a1
v2 --"schema:name"--> v5
list0c6(["incubator"]):::literal
list0c3(["species"]):::literal
list0c5(["meta"]):::literal
list0c1(["wikipedia"]):::literal
list0c4(["wikidata"]):::literal
list0c2(["commons"]):::literal
list0c1 --o bind1
list0c2 --o bind1
list0c3 --o bind1
list0c4 --o bind1
list0c5 --o bind1
list0c6 --o bind1
bind1[/"if( in ,concat(?lang,'wiki'),concat(?lang,?Wikigroup))"/]
v4 --o bind1
v3 --o bind1
bind1 --as--o v6
v7 --"wdt:P1800"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end