Use of magic properties in EDG

21 views
Skip to first unread message

Steve Ray

unread,
Oct 19, 2020, 12:27:48 PM10/19/20
to TopBraid Suite Users
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?


Steve

Holger Knublauch

unread,
Oct 19, 2020, 6:44:42 PM10/19/20
to topbrai...@googlegroups.com
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


Steve Ray

unread,
Oct 21, 2020, 3:26:25 PM10/21/20
to TopBraid Suite Users
Thanks, Holger. My magic property is recursive, and yields multiple
values on the right side, so I will see if I can get the (recursive)
SPARQL query wrapped into a sh:values clause.


Steve
> --
> 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/e9a06553-acab-9f71-3023-e8c610e51201%40topquadrant.com.
Reply all
Reply to author
Forward
0 new messages