Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property statement should handle more than just string #50

Open
tpluscode opened this issue Jul 27, 2019 · 0 comments
Open

Property statement should handle more than just string #50

tpluscode opened this issue Jul 27, 2019 · 0 comments
Labels
Core ⚛️ Related to core grammar Hydra 🐉

Comments

@tpluscode
Copy link
Member

Current the property rule only accepts STRING values

ExpectModifier 'Property' name=Identifier (expectation=STRING)?

I would like to at least also support

  • integers, decimals, booleans
  • numeric comparison
  • regex
Expect Property "foo" true
Expect Property "age" Less Than 21
Expect Property "extension" Matching "$.docx?"

Additionally hydra could have special type assertion check rdf:type property, used with URIs

Expect Type hydra:Collection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core ⚛️ Related to core grammar Hydra 🐉
Projects
None yet
Development

No branches or pull requests

1 participant