On 10/20/2020 2:27 AM, Steve Ray wrote:
Hi, I defined a magic property to infer values for a class relation,
which works fine in SPARQL queries. I was wondering if there is a way
for these inferred properties to be displayed in EDG without
explicitly asserting them with, say, sh:value? I'm trying not to
clutter up our vocabulary with things that can be inferred.

How do spin Magic Properties migrate over to the EDG world?

Older versions of our forms did show magic properties automatically but this is no longer the case.

I had added sh:values rules to SHACL-AF as a substitute for magic properties in mind. Magic properties are a SPARQL-specific feature that offers a bit too much flexibility while sh:values rules cover the common use cases of computing values for a given focus node.

Note that sh:values rules can even be chained together (using sh:path expressions), and work on the forms, GraphQL and the (new) Active Data Shapes scripts. And if the expressiveness of the built-in node expressions isn't sufficient, you can literally wrap the SPARQL query from your magic property as in

    https://w3c.github.io/shacl/shacl-af/#select

Note that magic properties can accept multiple "arguments" and compute multiple "results" (on both left and right hand side) while sh:values rules always just take one argument and produce one result variable. This variable may have multiple rows though.

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/e9a06553-acab-9f71-3023-e8c610e51201%40topquadrant.com.

Reply via email to