| Hello Hamid, I have attached an example file that - I believe - demonstrates that inferences are being executed as part of constraint checks. The main definitions are: ex:TestClass a owl:Class ; a sh:NodeShape ; dash:scriptConstraint [ a dash:ScriptConstraint ; dash:js "focusNode.value(ex.inferred) >= 30" ; sh:message "URI must have at least 30 chars" ; ] ; rdfs:label "Test class" ; rdfs:subClassOf owl:Thing ; sh:property ex:TestClass-inferred ; . ex:TestClass-inferred a sh:PropertyShape ; sh:path ex:inferred ; sh:datatype xsd:integer ; sh:name "inferred" ; sh:values [ dash:js "focusNode.uri.length" ; ] ; . where ex:inferred is computed to be the length of the URI and the constraint requires that the length >= 30. In my local tests that is working fine. If that same example does not work for you, then you may be on a different version than I am. Could you compare this with your own test and send me a minimal self-contained example that I can run locally if it still does not work for you? Regards Holger You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/B11044B3-48D4-4766-BCCA-69E55E7E0A1B%40topquadrant.com. |
constraint-inference.test.ttl
Description: Binary data
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/B11044B3-48D4-4766-BCCA-69E55E7E0A1B%40topquadrant.com. |
