query-27d6512f0afe87724abf1bfd7725955a
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?label_en ?label_de ?desc_en ?desc_de {
?item wdt:P31 wd:Q18343316 .
?article schema:about ?item ; schema:isPartOf/wikibase:wikiGroup "wikipedia" .
OPTIONAL { ?item rdfs:label ?label_en. FILTER(lang(?label_en) = "en") }
OPTIONAL { ?item schema:description ?desc_en. FILTER(lang(?desc_en) = "en") }
OPTIONAL { ?item rdfs:label ?label_en. FILTER(lang(?label_en) = "en") }
OPTIONAL { ?item schema:description ?desc_de. FILTER(lang(?desc_de) = "de") }
FILTER (!bound(?label_en)|| !bound(?desc_en) || !bound(?label_de) || !bound(?desc_de))
} ORDER BY ?label_en
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?article")
v4("?desc_de"):::projected
v2("?desc_en"):::projected
v5("?item"):::projected
v3("?label_de"):::projected
v1("?label_en"):::projected
a1((" "))
c4(["wd:Q18343316"]):::iri
c8(["wikipedia"]):::literal
f0[["(not bound(?label_en) || (not bound(?desc_en) || (not bound(?label_de) || not bound(?desc_de))))"]]
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
v5 --"wdt:P31"--> c4
v6 --"schema:about"--> v5
v6 --"schema:isPartOf"--> a1
a1 --"wikibase:wikiGroup"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:description".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."rdfs:label".-> v1
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:description".-> v4
end