query-4c9a373f0fe48a474bfbcadc94db2f8a
Floruit uit qualifiers bij geen dob/dod
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 pqv: <http://www.wikidata.org/prop/qualifier/value/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?propertyLabel ?qualifier ?qualifierLabel ?time ?precision
WHERE
{
{
SELECT ?item ?claim ?qualifiervalue ?time ?precision
WHERE
{
?item wdt:P31 wd:Q5.
?item wdt:P6379 wd:Q17153751.
# Get truthy statements for ?item with any of time qualifiers in ?qualifiervalue:
VALUES ?qualifiervalue { pqv:P580 pqv:P582 pqv:P585 }
?item ?claim ?statement.
?statement a wikibase:BestRank.
?statement ?qualifiervalue ?timenode.
?timenode wikibase:timePrecision ?precision.
?timenode wikibase:timeValue ?time.
FILTER (?precision > 8) #only year or better precision
}
}
FILTER NOT EXISTS { ?item wdt:P7763 [] } .#no copyright status
FILTER NOT EXISTS { ?item wdt:P570 [] }. #no dod
FILTER NOT EXISTS { ?item wdt:P1317 [] } .#no floruit
#Get labels for item, property and qualifier:
?qualifier wikibase:qualifierValue ?qualifiervalue.
?property wikibase:claim ?claim.
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("?claim")
v1("?item"):::projected
v2("?precision"):::projected
v9("?property"):::projected
v8("?qualifier"):::projected
v3("?qualifiervalue")
v5("?statement")
v7("?time"):::projected
v6("?timenode")
a3((" "))
a2((" "))
a1((" "))
c10(["wikibase:BestRank"]):::iri
c16(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c18(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["wd:Q17153751"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P1317"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P1317"--> a1
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P570"--> e1a1
e1v1("?item"):::projected
e1a1((" ")):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> a2
v1 --"wdt:P570"--> a2
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"wdt:P7763"--> e2a1
e2v1("?item"):::projected
e2a1((" ")):::projected
end
f2--EXISTS--> f2e2
f2 --> v1
f2 --> c3
f2 --> a3
v1 --"wdt:P7763"--> a3
f3[["?precision > '8^^xsd:integer'"]]
f3 --> v2
v1 --"wdt:P31"--> c6
v1 --"wdt:P6379"--> c8
bind4[/VALUES ?qualifiervalue/]
bind4-->v3
bind40(["pqv:P580"])
bind40 --> bind4
bind41(["pqv:P582"])
bind41 --> bind4
bind42(["pqv:P585"])
bind42 --> bind4
v1 -->v4--> v5
v5 --"a"--> c10
v5 -->v3--> v6
v6 --"wikibase:timePrecision"--> v2
v6 --"wikibase:timeValue"--> v7
v8 --"wikibase:qualifierValue"--> v3
v9 --"wikibase:claim"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c16 --"wikibase:language"--> c18
end