query-edfe0e539c1d199d8711347419f34045
an other query to check errors. with occupation to check if same person. SELECT ?q ?qLabel ?occLabel ?publicationDate ?mainSubject WHERE { ?q wdt:P31 wd:Q309481 ; wdt:P1433 wd:Q9684 . ?q wdt:P577 ?publicationDate . ?q wdt:P921 ?mainSubject . ?mainSubject wdt:P106 ?occ . # OPTIONAL { ?mainSubject wdt:P570 ?mainSubjectDeathDate . }
FILTER(YEAR(?publicationDate) = 2015).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,nl". } }
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 bd: <http://www.bigdata.com/rdf#>
# an other query to check errors. with occupation to check if same person.
SELECT ?q ?qLabel ?occLabel ?publicationDate ?mainSubject WHERE {
?q wdt:P31 wd:Q309481 ; wdt:P1433 wd:Q9684 .
?q wdt:P577 ?publicationDate .
?q wdt:P921 ?mainSubject .
?mainSubject wdt:P106 ?occ .
# OPTIONAL { ?mainSubject wdt:P570 ?mainSubjectDeathDate . }
FILTER(YEAR(?publicationDate) = 2015).
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,nl". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?mainSubject"):::projected
v4("?occ")
v1("?publicationDate"):::projected
v2("?q"):::projected
c5(["wd:Q9684"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q309481"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en,fr,nl"]):::literal
f0[["year-from-dateTime(?publicationDate) = '2015^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P1433"--> c5
v2 --"wdt:P577"--> v1
v2 --"wdt:P921"--> v3
v3 --"wdt:P106"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end