Talk:Q309481

From Wikidata
Jump to navigation Jump to search

Autodescription — obituary (Q309481)

description: short biography of someone who recently died
Useful links:
Classification of the class obituary (Q309481)  View with Reasonator View with SQID
For help about classification, see Wikidata:Classification.
Parent classes (classes of items which contain this one item)
Subclasses (classes which contain special kinds of items of this class)
obituary⟩ on wikidata tree visualisation (external tool)(depth=1)
Generic queries for classes
See also


Queries

[edit]

count number of obituaries

[edit]
SELECT (COUNT(*) as ?ct)  WHERE { ?item wdt:P136 wd:Q309481 ; wdt:P31 wd:Q13442814 }
Try it!
SELECT (COUNT(*) as ?ct)  WHERE { ?item wdt:P136 wd:Q309481 }
Try it!

find more obituaries

[edit]
SELECT DISTINCT ?item ?itemLabel ?title ("P??" as ?pr) ("Q309481" as ?value)
{
  hint:Query hint:optimizer "None".
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "obituary haswbstatement:P31=Q13442814 -haswbstatement:P136=Q309481 -haswbstatement:P138=Q309481 -haswbstatement:P921=Q309481".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
Try it!

One may want to differentiate:

find more obituaries ("in memoriam")

[edit]
SELECT DISTINCT ?item ?itemLabel ?title ("P??" as ?pr) ("Q309481" as ?value)
{
  hint:Query hint:optimizer "None".
  SERVICE wikibase:mwapi {
    bd:serviceParam wikibase:api "Search";
                    wikibase:endpoint "www.wikidata.org";
                    mwapi:srsearch "memoriam haswbstatement:P31=Q13442814 -haswbstatement:P825 -haswbstatement:P136=Q309481 -haswbstatement:P138=Q309481 -haswbstatement:P921=Q309481".
    ?title wikibase:apiOutput mwapi:title.
  }
  BIND(IRI(CONCAT(STR(wd:), ?title)) AS ?item)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
Try it!

One may want to differentiate:

articles about obituaries

[edit]
SELECT ?item ?itemLabel ?itemDescription
{
	?item wdt:P921 wd:Q309481 . 
	SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Try it!

Discussion

[edit]

thanks Jura1 for tthese examples. i found this talk page by searching "search item by property value". given a known value as "4125622-0" i want to find the wd item having the GND ID (P227) property with this value. thanks for your help in advance! regards
no bias — קיין אומוויסנדיקע פּרעפֿערענצן — keyn umvisndike preferentsn talk contribs 13:17, 11 November 2019 (UTC)[reply]

p.s. the answer should of cause be (GND ID (P227) of deception (Q170028)).
p.p.s. there is no {{PQ|227|170028}}: GND ID (P227) of deception (Q170028), only template:QP