On 2022-01-19 9:44 am, [email protected] wrote:
I have defined a property shape and am successfully inferring its objects using a sh:values rule.

Can you remind me whether it is possible to use this property and its inferred data in the sh:values rule for a different property shape? If so, is there a special way that it needs to be done -- like, does the data I inferred in the first property shape need to be materialized in some way before I can make use of it? --

In general, the RDF graphs that TopBraid operates on do not automatically "see" the extra inferred triples, so they are not computed as RDF triples on the fly. However, our higher level query languages GraphQL and JavaScript/ADS do see them whenever they are requested. The user interface goes through GraphQL and will therefore display these values as if they were materialized.

Now, within SHACL itself it depends on what you want to do. If you have SHACL-AF inference rules including other sh:values rules you can safely use path expressions https://w3c.github.io/shacl/shacl-af/#node-expressions-path and the values will be computed on the fly. For SHACL constraints there is no such mechanism unless you are expressing the constraints in SPARQL. There you can use the magic property

    (?focusNode ?predicate) tosh:values ?result

to query the inferred values.

The other option, of course, is to materialize the inferences, e.g. using the Inferences panel or the Transform tab.

Does this help?

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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/d1fc11f5-f4a3-4d23-84b7-4a72666e6c3fn%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/d1fc11f5-f4a3-4d23-84b7-4a72666e6c3fn%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/a4b94088-2091-a865-c46e-d1b0d55a2ebe%40topquadrant.com.

Reply via email to