Validating sh:xone

31 views
Skip to first unread message

Tomasz Pluskiewicz

unread,
Apr 4, 2021, 9:59:22 AM4/4/21
to TopBraid Suite Users
Hello

I've just finished integrating SHACL validation into Shaperone form builder (using rdf-validate-shacl) and I noticed that using a simple xone logical constraint, the validation does not pass if sh:minCount is not set.

Here's an example, which for same data will work if you uncomment the three lines on the left.

The same validation is returned in the original SHACL Playground.

Is this correct or maybe an error in the validation logic?

Regards,
Tom

Holger Knublauch

unread,
Apr 4, 2021, 7:13:58 PM4/4/21
to topbrai...@googlegroups.com

Hi Tom,

you may want to contact the developers of that API directly. I have confirmed that TopBraid (Java code) seems to handle this scenario correctly. Having no sh:minCount means that both branches will always be satisfied, while adding sh:minCount 1 should make the sh:xone behave as expected.

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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/9f4206b3-8ca6-4302-b566-11647ef1524en%40googlegroups.com.

Tomasz Pluskiewicz

unread,
Apr 6, 2021, 3:35:01 AM4/6/21
to TopBraid Suite Users
Thanks, I will report

That library is a port of SHACL.js, and it also has the same issue, in case you'd want to support the original library too :)
Reply all
Reply to author
Forward
0 new messages