Hi Davide,

thanks for the error message. I had to read up on GraphQL fragments as I have 
never used them.
It seems that they would need to be declared using the fragment keyword but I 
don't see that in your query.
Our GraphQL engine does not declare such fragments automatically.

It would streamline this discussion if we had a complete, self-contained 
example.

Thanks
Holger


> On 22 Nov 2023, at 3:59 am, Davide Sottara <[email protected]> wrote:
> 
> Unfortunately I get an error
> "Fragment cannot be spread here as objects of type (super) can never be of 
> type (sub)
> 
> On Tuesday, November 21, 2023 at 2:55:51 PM UTC-6 Holger Knublauch wrote:
>> Have you tried it out? What happened?
>> 
>> Holger
>> 
>> 
>> 
>>> On 21 Nov 2023, at 5:35 am, Davide Sottara <[email protected] <>> wrote:
>>> 
>> 
>>> I have a class hierarchy, where the classes are also node shapes with 
>>> property shapes
>>> 
>>> class AA
>>>    propA :String
>>> 
>>> class BB subClassOf AA
>>>   propB : String
>>> 
>>> Is a query like the following supported?
>>> 
>>> aaas {
>>>    propA
>>>     ... on bbb {
>>>      propB
>>>   }
>>> }
>>> 
>>> 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 [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/efa87ebe-4872-42f7-aaa7-27fc8dcadbb1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/topbraid-users/efa87ebe-4872-42f7-aaa7-27fc8dcadbb1n%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/746c10ff-c6ef-4fe3-9c4c-0ef1fa714fdcn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/746c10ff-c6ef-4fe3-9c4c-0ef1fa714fdcn%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/A303A644-24DB-499F-979E-E8D6D4CE8562%40topquadrant.com.

Reply via email to