Wikidata:Property proposal/kinship equivalent
Jump to navigation
Jump to search
kinship equivalent in SPARQL at Wikidata[edit]
Originally proposed at Wikidata:Property proposal/Person
Description | part of a SPARQL query that lists this type of ?relative of a ?person |
---|---|
Data type | String |
Domain | items for kinship |
Allowed values | SPARQL without SELECT * {}, wdt:P31 wd:Q5, but always including ?person and ?relative. Relationship properties: P22, P25, P40, P26, P3373 (add more if needed, not P1038). |
Example |
|
Formatter URL | https://query.wikidata.org/#SELECT%20%3Fperson%20%3FpersonLabel%20%3Frelative%20%3FrelativeLabel%0A%7B%20%0A%20%20$1.%0A%20%20%3Fperson%20wdt%3AP31%20wd%3AQ5%20.%20%3Frelative%20wdt%3AP31%20wd%3AQ5%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0ALIMIT%2010 |
- Motivation
Following the question by User:Marsupium at Wikidata:Project_chat#How_to_tell_a_machine_what_an_uncle_.28Q76557.29_is.3F
--- Jura 11:34, 12 September 2017 (UTC)
Notified participants of WikiProject Parenthood
--- Jura 11:51, 12 September 2017 (UTC)
- Discussion
- Comment maybe the uncle sample should have two queries instead of one.
--- Jura 11:51, 12 September 2017 (UTC) - Support Seems needed. Don't exactly understand the mechanics, but believe @Jura1: got it right :-).
- Just a note: DNB's AGRELON abstracts over gender in its hierarchy of family relations. So they got "uncle or aunt" and "nephew or niece" but not the gender-specific forms. The benefit is non-redundancy and more possibilities for definition of inverses. --Vladimir Alexiev (talk) 17:17, 2 October 2017 (UTC)
- @Vladimir Alexiev: Thanks for your feedback. The mechanics might eventually need to be fine-tuned, but I think ?person, ?relative and the absence of P1038 are important. The formatter URL just produces one list with all people with that relationship, but we could also use all statements to produce a list for a defined ?person (not quite sure how though).
--- Jura 09:33, 8 October 2017 (UTC)
- @Vladimir Alexiev: Thanks for your feedback. The mechanics might eventually need to be fine-tuned, but I think ?person, ?relative and the absence of P1038 are important. The formatter URL just produces one list with all people with that relationship, but we could also use all statements to produce a list for a defined ?person (not quite sure how though).
- Support ديفيد عادل وهبة خليل 2 (talk) 13:11, 5 October 2017 (UTC)
@Jura1, 2 ديفيد عادل وهبة خليل, Vladimir Alexiev: Done Now kinship equivalent in SPARQL at Wikidata (P4316). Lymantria (talk) 05:46, 10 October 2017 (UTC)