Types of Values

19 views
Skip to first unread message

GaBriella Branson

unread,
Feb 13, 2023, 4:38:52 PM2/13/23
to TopBraid Suite Users
Hi - I am interested in having the list of values available to a user be more specific than simply "Asset". This is edg:supercededBy on a Business Application and I only want my user to have to select from other Business Applications. Is there a way to do that without deactivating edg:supercededBy and re-defining with a property of my own name in my own property shape for the same sh:path?
Types of Values.JPG

Additionally I have a request from a user regarding Business Function and Business Activity. Is it possible after a Business Function is selected (edg:supportsBusinessFunction) to then have the list of available Business Activities (edg:supportsBusinessActivity) be limited to those related to the Function? 

Thank you in advance.

Holger Knublauch

unread,
Feb 14, 2023, 12:25:43 PM2/14/23
to topbrai...@googlegroups.com
On 13 Feb 2023, at 9:38 pm, 'GaBriella Branson' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

Hi - I am interested in having the list of values available to a user be more specific than simply "Asset". This is edg:supercededBy on a Business Application and I only want my user to have to select from other Business Applications. Is there a way to do that without deactivating edg:supercededBy and re-defining with a property of my own name in my own property shape for the same sh:path?
<Types of Values.JPG>

It sounds like you want to narrow down the sh:class constraint for edg:supercededBy at instances of the class edg:BusinessApplication. Doing this in subclasses in generally possible in SHACL and will be understood by TopBraid.

Try adding a new property shape for the same property (sh:path) at Business Application. The resulting source code would look something like this:

edg:BusinessApplication
    sh:property edg:BusinessApplication-supercededBy .

edg:BusinessApplication-supercededBy
    a sh:PropertyShape ;
    sh:path edg:supercededBy ;
    sh:class edg:BusinessApplication ;
.

Disclaimer: I have not tried that out.


Additionally I have a request from a user regarding Business Function and Business Activity. Is it possible after a Business Function is selected (edg:supportsBusinessFunction) to then have the list of available Business Activities (edg:supportsBusinessActivity) be limited to those related to the Function?

This would be much harder because the valid values would have to be the results of something like a SPARQL query and we don't have such an input widget. It is further complicated by the fact that users may change one value or the other while the form is in edit mode, and the UI would dynamically have to switch its allowed values.

So I don't see a built-in solution for that. It is always possible to develop customizations though for special tasks like that.

Holger


 

Thank you in advance.

--
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/47109c38-6980-4686-9b40-c8170c5d307fn%40googlegroups.com.
<Types of Values.JPG>

Reply all
Reply to author
Forward
0 new messages