EntitySchema talk:E10

From Wikidata
Jump to navigation Jump to search

Documentation

[edit]
Cradle
Schema Text Translation
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>

start = @<human>

<human> EXTRA wdt:P31 {
  wdt:P31 [wd:Q5];
  wdt:P21 [wd:Q6581097 wd:Q6581072 wd:Q1097630 wd:Q1052281 wd:Q2449503 wd:Q48270]?;   # gender
  wdt:P19 . ?;                     # place of birth
  wdt:P569 . ? ;                 # date of birth
  wdt:P735 . * ;                 # given name
  wdt:P734 . * ;                 # family name
  wdt:P106 . * ;                 # occupation
  wdt:P27 @<country> *;  # country of citizenship
  wdt:P22 @<human> *;           # father
  wdt:P25 @<human> *;           # mother
  wdt:P3373 @<human> *;         # sibling
  wdt:P26 @<human> *;           # spouse
  wdt:P40 @<human> *;           # children
  wdt:P1038 @<human> *;         # relatives
  wdt:P103 @<language> *;
  wdt:P1412 @<language> *;
  wdt:P6886  @<language> *;
  rdfs:label rdf:langString+;
}

<country> EXTRA wdt:P31 {
  wdt:P31 [wd:Q6256 wd:Q3024240 wd:Q3624078] +;
}

<language> EXTRA wdt:P31 {
  wdt:P31 [wd:Q34770 wd:Q1288568] +;
}
start at <human>
Please note that this documentation is manually updated. The information may not be correct if the schema has been changed since this talk page was last updated

Accept unknown value for birthplace

[edit]

Hi, I think we should not render an error when an item has a P19 with unknown value. See date of birth (P569) of Saxo Grammaticus (Q106837) which renders an error with ShEx2--So9q (talk) 14:55, 25 November 2019 (UTC)[reply]

[edit]

This schema requires that countries be have direct P31 links to one of several classes. But this isn't what makes an entity a country in Wikidata, as it could have a direct P31 link to a subclass of country. Why isn't this allowed? Peter F. Patel-Schneider (talk) 14:40, 6 December 2023 (UTC)[reply]

Similarly, what about a human that spoke Middle English (Q36395)? Peter F. Patel-Schneider (talk) 14:44, 4 July 2024 (UTC)[reply]