query-7c82e7272e1902d82ec6982ad5d5f771
Find items where one of the authors is dead less than 70/80/100 years while claiming 70/80/100 year pma
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#>
SELECT distinct ?item ?itemLabel ?creatorLabel ?dod ?pmaDuration {
?item wdt:P6216 ?copyright .
VALUES ?copyright { wd:Q19652 wd:Q15687061 } # P6216 main value = public domain
?item wdt:P50|wdt:P170|wdt:P655|wdt:P84|wdt:P110|wdt:P287|wdt:P98 ?creator .
?creator wdt:P570 ?dod
FILTER(YEAR(?dod) > 2019 - ?pmaDuration) # exclude if date of death < 1919
?item p:P6216/pq:P459 ?detmet # determination method 70, 80 or 100 pma
VALUES ?detmet { wd:Q29870196 wd:Q29940641 wd:Q29940705 }
?detmet wdt:P2047 ?pmaDuration
MINUS {?item p:P6216/pq:P518 []} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Order by ?creatorLabel
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?copyright")
v6("?creator")
v1("?creatorLabel"):::projected
v8("?detmet")
v2("?dod"):::projected
v4("?item"):::projected
v3("?pmaDuration"):::projected
a3((" "))
a1((" "))
a2((" "))
c16(["bd:serviceParam"]):::iri
c18(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?dod) > '2019^^xsd:integer' - ?pmaDuration"]]
f0 --> v2
f0 --> v3
v4 --"p:direct/P6216"--> v6
bind1[/VALUES ?copyright/]
bind1-->v6
bind10(["wd:Q19652"])
bind10 --> bind1
bind11(["wd:Q15687061"])
bind11 --> bind1
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;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P98"--> v6
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P287"--> v6
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P110"--> v6
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P84"--> v6
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P655"--> v6
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P170"--> v6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P50"--> v6
end
union0r <== or ==> union0l
end
v6 --"p:direct/P570"--> v2
v4 --"p:P6216"--> a1
a1 --"p:qualifier/P459"--> v8
bind2[/VALUES ?detmet/]
bind2-->v8
bind20(["wd:Q29870196"])
bind20 --> bind2
bind21(["wd:Q29940641"])
bind21 --> bind2
bind22(["wd:Q29940705"])
bind22 --> bind2
v8 --"p:direct/P2047"--> v3
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:P6216"--> a2
a2 --"p:qualifier/P518"--> a3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c16 --"wikibase:language"--> c18
end