*ShEx experts, *
I've got
https://www.wikidata.org/wiki/EntitySchema:E126 mostly working now
thanks to the examples and note on
https://www.wikidata.org/wiki/Wikidata:WikiProject_ShEx/How_to_get_started%…
specifically about
N.B. E97
<https://www.wikidata.org/wiki/EntitySchema:E97> only makes sure
that an item has at least one class. The constraint that at least one class
is an organization (Q43229) <https://www.wikidata.org/wiki/Q43229> or a subclass
of (P279) <https://www.wikidata.org/wiki/Property:P279> organization
(Q43229) <https://www.wikidata.org/wiki/Q43229> requires a more complex
recursive definition and is found here
<https://raw.githubusercontent.com/jneubert/wd-shex-test/master/wikidata-organization.shex>
and
in E98 <https://www.wikidata.org/wiki/EntitySchema:E98>.
Would love some help about the cardinality errors I'm getting when using
E126 <https://www.wikidata.org/wiki/EntitySchema:E126> with example query
or any of the other example queries in comments in E126
<https://www.wikidata.org/wiki/EntitySchema:E126> :
SELECT ?winner WHERE {
?winner wdt:P166 ?prize.
?prize (wdt:P361|wdt:P31|wdt:P279) wd:Q7191.
}
Errors from ShEx2 Online Validator :
✗wd:Q106471@!START
validating
http://www.wikidata.org/entity/Q106471 as
//www.wikidata.org/wiki/Special:EntitySchemaText/nobel_winner:
validating
http://www.wikidata.org/entity/Q44585: exceeds cardinality
✗wd:Q110947@!START
validating
http://www.wikidata.org/entity/Q110947 as
//www.wikidata.org/wiki/Special:EntitySchemaText/nobel_winner:
validating
http://www.wikidata.org/entity/Q44585: exceeds cardinality
Thad
https://www.linkedin.com/in/thadguidry/