Thanks a lot, Holger, that worked.

Best

Felix

On Sun, 21 Nov 2021 at 23:07, Holger Knublauch <[email protected]>
wrote:

> By default, SHACL will not apply any inferences before validation. If you
> first want to run the (sh:values) rules, try setting the sh:entailment
> property
>
>     https://www.w3.org/TR/shacl/#shacl-rdfs
>
> at some subject (typically the owl:Ontology instance of your graph) with
> the value sh:Rules
>
>     https://w3c.github.io/shacl/shacl-af/#Rules
>
> HTH
> Holger
>
>
> On 2021-11-21 8:49 pm, 'Felix Sasaki' via TopBraid Suite Users wrote:
>
> I am trying the sh:values feature
> https://www.topquadrant.com/graphql/values.html
> with the shacl api
> https://github.com/TopQuadrant/shacl
> using the example attached.
>
> Doing an inference, I get the triples generated as expected:
>
> <http://example.com/instancedata/JohnKennedy>
> <http://example.com/instancedata/JohnKennedy> <http://schema.org/children>
> <http://schema.org/children>
> <http://example.com/instancedata/CarolineKennedy>
> <http://example.com/instancedata/CarolineKennedy> ,
> <http://example.com/instancedata/PatrickBKennedy>
> <http://example.com/instancedata/PatrickBKennedy> ,
> <http://example.com/instancedata/JohnKennedyJr>
> <http://example.com/instancedata/JohnKennedyJr> .
>
> Trying validation, I get an error message for JohnKennedy:
>  sh:result    [ a                             sh:ValidationResult ;
>                  sh:focusNode                  kennedys:JohnKennedy ;
>                  sh:resultMessage              "Property needs to have at
> least 3 values, but found 0" ;
>                  sh:resultPath                 schema:children ;
>                  sh:resultSeverity             sh:Violation ;
>                  sh:sourceConstraintComponent
> sh:MinCountConstraintComponent ;
>                  sh:sourceShape                _:b0               ] ;
>
>
> I would have expected that the validation takes the triples into account
> that have been generated via sh:values. Is this wrong, or is there an issue
> with my SHACL example?
>
> Best
>
> Felix
> --
> 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/13168e8c-035f-4098-b572-3faa651a8a04n%40googlegroups.com
> <https://groups.google.com/d/msgid/topbraid-users/13168e8c-035f-4098-b572-3faa651a8a04n%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/c9ae9519-aeb4-1c5c-adf5-645ad6150f39%40topquadrant.com
> <https://groups.google.com/d/msgid/topbraid-users/c9ae9519-aeb4-1c5c-adf5-645ad6150f39%40topquadrant.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/CAL58czo8wNXYOk_TBXruPRTJpN7PS8-8vjU%3DkVT1d8phbmiUUg%40mail.gmail.com.

Reply via email to