w3c / cogai

for work by the Cognitive AI community group
Other
53 stars 24 forks source link

Handles lists, negated and wild card operators during match #37

Closed tidoust closed 3 years ago

tidoust commented 3 years ago

The update also clarifies that the order of atomic values in a list is significant.

Note that the @kindof operator will only match if its value is an atomic value. Rule may change in the future if that seems too strict.

Fixes #30 and #36.


Preview | Diff

tidoust commented 3 years ago

@draggett, I expanded the pull request to also cover the negation operator (#31) and the wild card operator (https://github.com/w3c/cogai/issues/31#issuecomment-870491224). I shuffled a few sections around to make the whole thing hopefully more readable.

Grammar was updated accordingly. Test suite and reference implementation should still be updated to reflect that ! is not a wild card operator (and to add a test on the actual wild card operator *), as discussed in #31.