EntitySchema talk:E14
Jump to navigation
Jump to search
Documentation
[edit]Cradle •
Schema Text | Translation |
---|---|
PREFIX p: <http://www.wikidata.org/prop/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> # sample items (recent Q5 items): # SELECT ?item { ?item wdt:P106 wd:Q33999; wdt:P31 wd:Q5. FILTER(xsd:integer(substr(str(?item), 33)) > 63000000) } ORDER BY DESC(substr(str(?item), 33)) LIMIT 50 # should pass: # SELECT ?item { ?item wdt:P31 wd:Q5; wdt:P106 []; wdt:P21 []; wdt:P735 []; wdt:P569 []; wdt:P734 [] } LIMIT 20 # should fail: # SELECT ?item { ?item wdt:P31 wd:Q5; wdt:P106 []; wdt:P21 []; wdt:P735 []; wdt:P569 [] . MINUS { ?item wdt:P734 [] } } LIMIT 20 start = @<wikidata-Q5> <wikidata-Q5> EXTRA p:P31 { ## STATEMENTS wdt:P31 [wd:Q5] ; wdt:P21 . ; wdt:P106 . + ; wdt:P569 . + ; wdt:P735 . + ; wdt:P734 . + ; } #use different scheme for more detailed or different definitions |
start at <wikidata-Q5>
|
This is already defined as E10. — Finn Årup Nielsen (fnielsen) (talk) 16:45, 28 May 2019 (UTC)
- They have different levels of details and purposes. --- Jura 06:57, 29 May 2019 (UTC)
- Note about "repurposing entities isn't good": The original version stated inconsistently that it was "wikidata-film" while instance of Q5 and the label describe human. — Finn Årup Nielsen (fnielsen) (talk) 07:51, 29 May 2019 (UTC)
- Sorry about that. I'm not sure if the variable name has an impact, but I'm still struggling with the syntax and the tools. Thanks for your help with the first. --- Jura 08:33, 29 May 2019 (UTC)
- Note about "repurposing entities isn't good": The original version stated inconsistently that it was "wikidata-film" while instance of Q5 and the label describe human. — Finn Årup Nielsen (fnielsen) (talk) 07:51, 29 May 2019 (UTC)