

On 20 Feb 2023, at 4:56 pm, Nensi Skenderi <nensisk...@gmail.com> wrote:
Hello,So I have been using SHACL for a white now and I notice the following:When I validate the below date and shape graph in https://shacl.org/playground/
I get only 2 validation reports which is perfectly fine. <Screenshot 2023-02-20 at 5.53.26 PM.png>
When I validate the same models in code I also get these ClassConstraintComponent violations. How to get rid of these without making changes in the models?
<Screenshot 2023-02-20 at 5.55.33 PM.png>Thanks,Nensi
--
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/d8d6a36b-5a95-4568-ab94-218fb58ed972n%40googlegroups.com.
<Screenshot 2023-02-20 at 5.55.33 PM.png><Screenshot 2023-02-20 at 5.53.26 PM.png>
On 20 Feb 2023, at 5:23 pm, Nensi Skenderi <nensisk...@gmail.com> wrote:Hello Holger,Many thanks for the fast reply.I thought of this "either fix the model to include the correct class definitions" but in my case I can not do that.So now I tried with the other suggestion you gave me. It worked.I also addedtosh:NodeShape-targetClass
sh:deactivated true .in order to get rid ofsh:result [ rdf:type sh:ValidationResult ;
sh:focusNode ex:PersonShape ;
sh:resultMessage "Value must be an instance of rdfs:Class" ;
sh:resultPath sh:targetClass ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClassConstraintComponent ;
sh:sourceShape tosh:NodeShape-targetClass ;
sh:value nensi:Person
] ;Do you think it's a good idea to addtosh:NodeShape-targetClass
sh:deactivated true .
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/59b72857-742c-4ed1-957a-72aaaf83b8f5n%40googlegroups.com.