query-3a15458ca2b3223142b1d5862a4755fe
Wikimedia database name (P1800): Properties06:01, 29 March 2020 (UTC)) talk (Daniel MietchenWhile this has all the functionality I need, I am now curious as to whether the string values in line 10 could be inferred in some way rather than hardcoded. At least in theory, things like "sdcommons" or "wikibase" or "wikispore" might eventually fit in there at some point. --The direct way is
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 ?Template ?TemplateURL ?TemplateTitle ?LanguageCode ?WikiLabel
WHERE {
VALUES ?Template {
wd:Q83761248 wd:Q5637226 wd:Q5312535 wd:Q5625141
}
?TemplateURL schema:about ?Template;
schema:inLanguage ?LanguageCode ;
schema:isPartOf ?wikilang ;
schema:name ?TemplateTitle .
?Wiki wdt:P856 ?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;
v3("?LanguageCode"):::projected
v1("?Template"):::projected
v5("?TemplateTitle"):::projected
v2("?TemplateURL"):::projected
v6("?Wiki")
v4("?wikilang")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?Template/]
bind0-->v1
bind00(["wd:Q83761248"])
bind00 --> bind0
bind01(["wd:Q5637226"])
bind01 --> bind0
bind02(["wd:Q5312535"])
bind02 --> bind0
bind03(["wd:Q5625141"])
bind03 --> bind0
v2 --"schema:about"--> v1
v2 --"schema:inLanguage"--> v3
v2 --"schema:isPartOf"--> v4
v2 --"schema:name"--> v5
v6 --"wdt:P856"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end