query-4762ce065daa3807ecb6122e68d79b6a
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?pq_obj ?pq_objLabel WHERE {
?item p:P31 ?statement .
?statement ps:P31 wd:Q502895 .
?statement pq:P642 ?pq_obj .
?pq_qual wikibase:qualifier pq:P642 .
?pq_obj wdt:P31 wd:Q16521 .
MINUS { ?article schema:about ?pq_obj. ?article schema:isPartOf <https://en.wikipedia.org/> }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de,fr,pl" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article")
v1("?item"):::projected
v3("?pq_obj"):::projected
v4("?pq_qual")
v2("?statement")
c4(["p:qualifier/P642"]):::iri
c14(["en,de,fr,pl"]):::literal
c10([https://en.wikipedia.org/]):::iri
c12(["bd:serviceParam"]):::iri
c3(["wd:Q502895"]):::iri
c7(["wd:Q16521"]):::iri
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c3
v2 -->c4--> v3
v4 --"wikibase:qualifier"--> c4
v3 --"p:direct/P31"--> c7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> c10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end