query-2f15504e5eb337c8af69e5134f791059
Royal Society obituaries (Andrew Gray) SELECT ?item ?itemLabel ?year ?journalLabel ?volume ?pages ?doi ?subject ?subjectLabel WHERE { { ?item wdt:P1433 wd:Q4914871 } UNION { ?item wdt:P1433 wd:Q29043655 } . # In Bio Memoirs RS or Obit Notices RS ?item wdt:P921 ?subject . ?item wdt:P356 ?doi . ?item wdt:P577 ?date . bind (year(?date) as ?year). ?item wdt:P478 ?volume . ?item wdt:P304 ?pages . ?item wdt:P1433 ?journal . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } order by ?doi
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#>
#Royal Society obituaries (Andrew Gray)
SELECT ?item ?itemLabel ?year ?journalLabel ?volume ?pages ?doi ?subject ?subjectLabel
WHERE
{
{ ?item wdt:P1433 wd:Q4914871 } UNION { ?item wdt:P1433 wd:Q29043655 } . # In Bio Memoirs RS or Obit Notices RS
?item wdt:P921 ?subject .
?item wdt:P356 ?doi .
?item wdt:P577 ?date .
bind (year(?date) as ?year).
?item wdt:P478 ?volume .
?item wdt:P304 ?pages .
?item wdt:P1433 ?journal .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
order by ?doi
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?date")
v1("?doi"):::projected
v2("?item"):::projected
v8("?journal")
v7("?pages"):::projected
v3("?subject"):::projected
v6("?volume"):::projected
v5("?year"):::projected
c3(["wd:Q29043655"]):::iri
c10(["bd:serviceParam"]):::iri
c2(["wd:Q4914871"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1433"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1433"--> c2
end
union0r <== or ==> union0l
end
v2 --"wdt:P921"--> v3
v2 --"wdt:P356"--> v1
v2 --"wdt:P577"--> v4
bind0[/"year-from-dateTime(?date)"/]
v4 --o bind0
bind0 --as--o v5
v2 --"wdt:P478"--> v6
v2 --"wdt:P304"--> v7
v2 --"wdt:P1433"--> v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end