Closed mprather closed 1 year ago
The docs says that only the functional
flag is optional (notated with ?
in BNF) for a scalar property. Both domain
and range
do not have ?
which means they are required.
The entire section is wrapped by an optional ?
([ domain [Classifier|IRI] range [Scalar|IRI] functional? // each instance can have a maximum of 1 value for this property ])?
This is the point of this issue. The documentation is different than the behavior observed.
Ah, sorry I missed that. You're right. I will fix this in the next patch release soon.
I fixed the spec with the correct syntax. Please double check: http://www.opencaesar.io/om
Thanks. Closing.
Description
Documentation states that scalar property can have zero or one domain/range+functional set.
http://www.opencaesar.io/oml/#ScalarProperty-LR
Steps to Reproduce
Define a scalar property without the axiom.
Result:
Expected Behavior
Either the docs needs to be updated or there is a bug in the parsing code.