Re-posting with proper subject... Hello, Using the SPIN libraries, I'm trying to run constraint checking on the example spinsquare model mentioned here:
http://composing-the-semantic-web.blogspot.com/2009_01_01_archive.html When I run the following code on the model: List<ConstraintViolation> cvs = SPINConstraints.check(spinsquareModel, null); for (ConstraintViolation cv : cvs) { logIt("Constraint violations:"); logIt(" - at " + SPINLabels.get().getLabel(cv.getRoot()) + ": " + cv.getMessage()); } I do get the invalid square constraint error returned, however I also get a LOT of ConstraintViolation objects returned that reference anonymous nodes with no associated message. E.g. the output from the above code is Constraint violations: - at :InvalidSquare: Width and height of a Square must be equal Constraint violations: - at -eaa82cc:123049a7331:-7ea7: Constraint violations: - at -eaa82cc:123049a7331:-7e99: Constraint violations: - at -eaa82cc:123049a7331:-7e88: Constraint violations: - at -eaa82cc:123049a7331:-7edc: Constraint violations: - at -eaa82cc:123049a7331:-7eee: Constraint violations: - at -eaa82cc:123049a7331:-7ece: And there are many more anonymous node violations returned. Any idea what may be causing this? Thanks, Jeff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
