Teester / entityshape

An api to compare a wikidata item with an entityschema
GNU General Public License v3.0
5 stars 3 forks source link

Add support for groups #2

Open Teester opened 4 years ago

Teester commented 4 years ago

Currently shex groups are not supported and the grouping is ignored.

Thus the following from E228 will not correctly evaluate:

{ ( pq:P1534 @ +; pq:P582 xsd:dateTime +; )* ; }

This translates as must have 0 or more of the following: 1 or more P1534 and 1 or more of P582.

shape.py evaluates it as must have 1 or more P1534 and 1 or moreP582, which is incorrect.