query-743c472630977315a6149a6e05571072
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?no ?sv ?da ?nn WHERE
{
?item wdt:P5008 wd:Q15305047.
OPTIONAL { ?article_no schema:about ?item ;
schema:isPartOf <https://no.wikipedia.org/> .}
OPTIONAL { ?article_sv schema:about ?item ;
schema:isPartOf <https://sv.wikipedia.org/> . }
OPTIONAL { ?article_da schema:about ?item ;
schema:isPartOf <https://da.wikipedia.org/> . }
OPTIONAL { ?article_nn schema:about ?item ;
schema:isPartOf <https://nn.wikipedia.org/> . }
BIND(IF(BOUND(?article_no),"yes","no") as ?no)
BIND(IF(BOUND(?article_da),"yes","no") as ?da)
BIND(IF(BOUND(?article_sv),"yes","no") as ?sv)
BIND(IF(BOUND(?article_nn),"yes","no") as ?nn)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article_da")
v5("?article_nn")
v2("?article_no")
v3("?article_sv")
v7("?da"):::projected
v1("?item"):::projected
v9("?nn"):::projected
v6("?no"):::projected
v8("?sv"):::projected
c8([https://nn.wikipedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c5([https://no.wikipedia.org/]):::iri
c12(["en"]):::literal
c2(["wd:Q15305047"]):::iri
c7([https://da.wikipedia.org/]):::iri
c6([https://sv.wikipedia.org/]):::iri
v1 --"wdt:P5008"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v1
v2 --"schema:isPartOf"--> c5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."schema:about".-> v1
v3 --"schema:isPartOf"--> c6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v1
v4 --"schema:isPartOf"--> c7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v1
v5 --"schema:isPartOf"--> c8
end
bind0[/"if(bound(?article_no),'yes','no')"/]
v2 --o bind0
bind0 --as--o v6
bind1[/"if(bound(?article_da),'yes','no')"/]
v4 --o bind1
bind1 --as--o v7
bind2[/"if(bound(?article_sv),'yes','no')"/]
v3 --o bind2
bind2 --as--o v8
bind3[/"if(bound(?article_nn),'yes','no')"/]
v5 --o bind3
bind3 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end