Sure, the SHACL semantics should inherit constraints both ways. So all 
constraints at aShape will also apply to bShape.

But I have not seen this particular pattern in practice. Is this a real use 
case?

Holger


> On 5 Sep 2023, at 6:25 pm, Maatary Okouya <[email protected]> wrote:
> 
> One extra clarification on this. 
> 
> Is it ok to actually mix both approach i.e. 
> 
> :aShape a owl:Class; a sh:NodeShape .
> 
> :bShape a sh:NodeShape;
> :bShape sh:node aShape;
> .
> 
> On Saturday, September 2, 2023 at 12:33:45 AM UTC+1 Maatary Okouya wrote:
>> thanks for clarifying.
>> 
>> On Friday, September 1, 2023 at 2:13:44 PM UTC+1 Holger Knublauch wrote:
>>> 
>>>> On 1 Sep 2023, at 2:00 pm, Maatary Okouya <[email protected] <>> wrote:
>>>> 
>>>> I have a quick question about the best way to express inheritance between 
>>>> pure shapes. 
>>>> 
>>>> E.g. 
>>>> 
>>>> :aShape a sh:nodeShape .
>>>> :bshape a sh:nodeShape .
>>>> 
>>>> Are the following 2 options equivalent, and which one is the reocmmended ? 
>>>> 
>>>> bShape rdfs:subClassOf aShape; 
>>>> or
>>>> bShape sh:node aShape ; 
>>>> 
>>>> The goal is to have bShape inherit the property of aShape.
>>> 
>>> sh:node is the right solution. subClassOf is only for classes, including 
>>> for classes that are also shapes.
>>> 
>>> (Typo above - sh:NodeShape must have a big N)
>>> 
>>> Holger
>>> 
>>> 
>>>> 
>>>> Thanks
>>>> 
>>>> -- 
>>>> 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/07c4c762-a4be-4617-9991-647907b3e235n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/topbraid-users/07c4c762-a4be-4617-9991-647907b3e235n%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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/995f18bd-3789-491d-bc88-09d06e5050d0n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/995f18bd-3789-491d-bc88-09d06e5050d0n%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/79BC074D-FFD1-4AA6-999C-53E7F617192E%40topquadrant.com.

Reply via email to