> the inner anonymous node shapes also have a sh:targetClass Ahh, I get it now! Because of the target class specifications these blank nodes target the <example> node (again). Removing those made things work as expected :).
Thanks for your prompt help! On Friday, February 10, 2023 at 2:59:00 PM UTC+1 Holger Knublauch wrote: > But in the example that you linked to, the 3rd condition is outside of the > sh:or block, which is enclosed by ( ... ) > > So it's evaluated directly under ex:Person and not as part of sh:or, which > only has two operands. > > Holger > > > On 10 Feb 2023, at 1:55 pm, A.L. Kleijngeld <bar...@gmail.com> wrote: > > Hi Holger, > > My point is that I expected the overall report status to be "Success: > Yes". If one of the three shapes in the OR succeeds (and like you say, one > does), then there's no actual violation, right? > > (Btw, I do understand that during the evaluation of the OR, two node > shapes yield a (similar) violation.) > > > > On Friday, February 10, 2023 at 2:33:50 PM UTC+1 Holger Knublauch wrote: > >> But the page says Success: No >> >> and then lists two violations. >> >> [image: PastedGraphic-1.png] >> >> I guess the violations shows up twice because the inner anonymous node >> shapes also have a sh:targetClass. But the sh:or validates fine because the >> second shape about having at least one comment is valid. >> >> Holger >> >> >> On 10 Feb 2023, at 1:26 pm, A.L. Kleijngeld <bar...@gmail.com> wrote: >> >> Hi, >> >> I just read some very enlightening discussions on here that cleared up >> sh:or big time for me! >> >> Still, I'm a bit confused. >> See: https://s.zazuko.com/3hDRN1r >> >> So, the way I interpret what I've written is as follows. >> >> The indivual <example> is targeted by all three node shapes connected by >> the sh:or, i.e. testShape and the two blank nodes that are node shapes. >> >> One of these node shapes validates the focus node <example> successfully, >> so I would've expected the net result to be that the validation result is >> "Success". >> >> It feels like I'm saying 1 OR 0 OR 0 and it gives me 0, which is >> erroneous. >> >> What am I misunderstanding? >> >> Thanks! >> >> -- >> 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/2e6cab91-93fc-4ef4-a438-86e6ecba0ccbn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/topbraid-users/2e6cab91-93fc-4ef4-a438-86e6ecba0ccbn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> >> > -- > 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/32e970cb-8dac-42d8-b096-bc16e433ebc8n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/32e970cb-8dac-42d8-b096-bc16e433ebc8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/b395482a-6368-424f-a143-3fc5f58f0162n%40googlegroups.com.