Is there an EDG/SHACL equivalent of spin:constructor?

70 views
Skip to first unread message

Tim Smith

unread,
Feb 15, 2022, 2:29:45 PM2/15/22
to topbrai...@googlegroups.com
Hi, 
I need to populate the values of some proprieties when an instance is created in EDG.  Some of them require SPARQL functions. 

What is the preferred way to do this in EDG?

Thanks in advance for your help,

Tim

Holger Knublauch

unread,
Feb 15, 2022, 10:20:51 PM2/15/22
to topbrai...@googlegroups.com
Hi Tim,

This may be just the thing (for 7.1):


(Requires basic JS skills, but if you’re not familiar we can give you starting points, e.g. use graph.update(`INSERT …`) to run a SPARQL UPDATE.)

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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAF0Wbn%2BqeDHyOjs-oMHjmzK6e%2BsaeBZEcPxThHPcTM7VTsCvuw%40mail.gmail.com.

Tim Smith

unread,
Feb 15, 2022, 10:26:21 PM2/15/22
to topbrai...@googlegroups.com
Thanks Holger!  I'll take a look and refresh my Javascript skills.

Holger Knublauch

unread,
Feb 15, 2022, 10:38:53 PM2/15/22
to topbrai...@googlegroups.com
The best way to experiment with this (ADS) technology is to open the Script Editor panel and just execute little test scripts. Once you’re familiar and it seems to work, then copy the resulting script into the constructor’s dash:js property.

Good luck, and please ask follow-up questions here (I am currently traveling in Tasmania so my responses may be slower than usual).

Holger


Reply all
Reply to author
Forward
0 new messages