I see that I should be able to access the shacl:in property of the raml-shapes:ScalarShape class. But how can access RDF members that are represented as enumerated properties (rdfs:_1 and rdfs:_2)? With AMF4, I've been able to achieve this using functionConstraint with javascript code, but it seems to be no longer possible.
I've been following the tutorial for custom validation, but I wasn't able to figure out how to validate enums correctly.
If we consider the following RAML file:
That will generate the following graph:
I see that I should be able to access the
shacl:in
property of theraml-shapes:ScalarShape
class. But how can access RDF members that are represented as enumerated properties (rdfs:_1
andrdfs:_2
)? With AMF4, I've been able to achieve this usingfunctionConstraint
with javascript code, but it seems to be no longer possible.