Instances with multiple Class types

14 views
Skip to first unread message

Marie Valadez

unread,
May 21, 2024, 12:22:37 PMMay 21
to TopBraid Suite Users
I am probably just overlooking this. I checked the datashapes page and sifted through documentation. Is there a way to default which form is used to define an instance in EDG. We are on 7.8.1. For instance, if an instance is member of ex:Class1 and ex:Class2, I want the form to default to ex:Class2.

Thanks for your help!

Marie

Holger Knublauch

unread,
May 21, 2024, 12:32:25 PMMay 21
to 'Luis Enrique Ramos García' via TopBraid Suite Users
Hi Marie,

try adding the triple

ex:Class2 dash:defaultViewForRole dash:all 

You may need to enter that triple with the source code editor as it's rarely needed.

A Test is below.

Holger


ex:ClassA
a owl:Class ;
a sh:NodeShape ;
rdfs:label "Class A" ;
rdfs:subClassOf owl:Thing ;
sh:property ex:ClassA-propA ;
.
ex:ClassA-propA
a sh:PropertyShape ;
sh:path ex:propA ;
sh:name "prop A" ;
sh:nodeKind sh:Literal ;
.
ex:ClassB
a owl:Class ;
a sh:NodeShape ;
dash:defaultViewForRole dash:all ;
rdfs:label "Class B" ;
rdfs:subClassOf owl:Thing ;
sh:property ex:ClassB-propB ;
.
ex:ClassB-propB
a sh:PropertyShape ;
sh:path ex:propB ;
sh:name "prop B" ;
sh:nodeKind sh:Literal ;
.
ex:Instance
a ex:ClassA ;
a ex:ClassB ;
rdfs:label "Instance" ;
.



--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
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/3c40b9d6-b38b-4018-8e41-25cb59df4d53n%40googlegroups.com.

Marie Valadez

unread,
May 21, 2024, 1:09:54 PMMay 21
to topbrai...@googlegroups.com
That seems to have done the trick. Thank you!

--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/boDC17qTng4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages