Great,
Thanks again, Nensi On Monday, February 20, 2023 at 6:25:45 PM UTC+1 Holger Knublauch wrote: > > On 20 Feb 2023, at 5:23 pm, Nensi Skenderi <[email protected]> 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 added > > > > *tosh:NodeShape-targetClass sh:deactivated true .* > > in order to get rid of > > sh: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 add > > *tosh:NodeShape-targetClasssh:deactivated true .* > > > That's up to you but yes why not. > > Holger > > > > as well to get rid of these cases? > > Thanks, > Nensi > On Monday, February 20, 2023 at 6:04:28 PM UTC+1 Holger Knublauch wrote: > >> The two class-related violations originate from tosh.ttl, in particular >> the property shape tosh:Resource-type. >> >> To get rid of these, either fix the model to include the correct class >> definitions or add the triple >> >> tosh:Resource-type sh:deactivated true . >> >> If you have the class definitions in some ontology or shapes file, you >> could owl:import that into the data graph and make it part of the data >> graph for validation purposes. >> >> Holger >> >> >> >> >> On 20 Feb 2023, at 4:56 pm, Nensi Skenderi <[email protected]> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/topbraid-users/d8d6a36b-5a95-4568-ab94-218fb58ed972n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/topbraid-users/d8d6a36b-5a95-4568-ab94-218fb58ed972n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> <Screenshot 2023-02-20 at 5.55.33 PM.png><Screenshot 2023-02-20 at >> 5.53.26 PM.png> >> >> >> > -- > 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/59b72857-742c-4ed1-957a-72aaaf83b8f5n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/59b72857-742c-4ed1-957a-72aaaf83b8f5n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/ad0b5588-41f9-486b-9680-11c3dde0351dn%40googlegroups.com.
