query-154d453a0e93f51279ba25af4d8d2c03
Online
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#>
SELECT DISTINCT ?item ?itemNativeLabel ?itemDescription ?accessStatusLabel ?website WHERE {
?item wdt:P31 / wdt:P279* wd:Q23622.
?item wdt:P407 / wdt:P279* wd:Q9043.
?item wdt:P31 / wdt:P279* wd:Q3327521.
OPTIONAL { ?item ( wdt:P1705| wdt:P1476 | wdt:P1448 ) ?itemNativeLabel }.
OPTIONAL { ?item ( wdt:P856 | wdt:P953 ) ?website }.
## OPTIONAL { ?item wdt:P407 ?language }.
OPTIONAL { ?item wdt:P6954 ?accessStatus }.
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;
v4("?accessStatus")
v1("?item"):::projected
v2("?itemNativeLabel"):::projected
v3("?website"):::projected
a1((" "))
a2((" "))
a3((" "))
c3(["wd:Q23622"]):::iri
c6(["wd:Q3327521"]):::iri
c14(["bd:serviceParam"]):::iri
c5(["wd:Q9043"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P407"--> a2
a2 --"wdt:P279"--> c5
v1 --"wdt:P31"--> a3
a3 --"wdt:P279"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 -."wdt:P1448".-> v2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1476"--> v2
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1705"--> v2
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v1 -."wdt:P953".-> v3
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P856"--> v3
end
union2r <== or ==> union2l
end
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P6954".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end