query-435688bb02c99fcf2c99da4a05a024a8
Editions with a copyright status that has a relevant date but not a determination method SELECT DISTINCT ?work ?workLabel ?methodLabel ?whereLabel ?relevantDate ?pdDate WHERE { ?work wdt:P31/wdt:P279* wd:Q3331189 . hint:Prior hint:gearing "forward".
?work p:P6216 ?statusStatement . ?statusStatement pq:P9905 ?relevantDate. OPTIONAL { ?statusStatement pq:P459 ?method . } OPTIONAL { ?statusStatement pq:P1001 ?where . } OPTIONAL { ?statusStatement pq:P3893 ?pdDate. } MINUS { ?statusStatement pq:P459 ?where . ?statusStatement pq:P1001 ?method . ?statusStatement pq:P3893 ?pdDate . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Editions with a copyright status that has a relevant date but not a determination method
SELECT DISTINCT ?work ?workLabel ?methodLabel ?whereLabel ?relevantDate ?pdDate WHERE {
?work wdt:P31/wdt:P279* wd:Q3331189 .
?work p:P6216 ?statusStatement .
?statusStatement pq:P9905 ?relevantDate.
OPTIONAL {
?statusStatement pq:P459 ?method .
}
OPTIONAL {
?statusStatement pq:P1001 ?where .
}
OPTIONAL {
?statusStatement pq:P3893 ?pdDate.
}
MINUS {
?statusStatement pq:P459 ?where .
?statusStatement pq:P1001 ?method .
?statusStatement pq:P3893 ?pdDate .
}
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("?method")
v6("?pdDate"):::projected
v3("?relevantDate"):::projected
v2("?statusStatement")
v5("?where")
v1("?work"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q3331189"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P6216"--> v2
v2 --"p:qualifier/P9905"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P459".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1001".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P3893".-> v6
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:qualifier/P459"--> v5
v2 --"p:qualifier/P1001"--> v4
v2 --"p:qualifier/P3893"--> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end