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" ;
.



> On 21 May 2024, at 6:22 PM, Marie Valadez <[email protected]> wrote:
> 
> 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
> 
> -- 
> The topics of this mailing list include TopBraid EDG and related technologies 
> such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/3c40b9d6-b38b-4018-8e41-25cb59df4d53n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/3c40b9d6-b38b-4018-8e41-25cb59df4d53n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
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/EEAD2E78-C89E-4796-BAE8-242E532E3A9E%40topquadrant.com.

Reply via email to