query-e52e9539ce2b52c9e720c83a3459777b
items that have old akadem but not new akadem SELECT ?q ?qLabel ?akadem_old ?akadem_new WHERE { ?q wdt:P5378 ?akadem_old . OPTIONAL { ?q wdt:P12214 ?akadem_new } . FILTER(!BOUND(?akadem_new)) . SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# items that have old akadem but not new akadem
SELECT ?q ?qLabel ?akadem_old ?akadem_new WHERE {
?q wdt:P5378 ?akadem_old .
OPTIONAL { ?q wdt:P12214 ?akadem_new } .
FILTER(!BOUND(?akadem_new)) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?akadem_new"):::projected
v3("?akadem_old"):::projected
v2("?q"):::projected
c4(["bd:serviceParam"]):::iri
c6(["fr,en"]):::literal
f0[["not bound(?akadem_new)"]]
f0 --> v1
v2 --"wdt:P5378"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P12214".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end