> On 28 Nov 2023, at 3:08 pm, Davide Sottara <dso...@gmail.com> wrote: > > I have put together a simple ontology with a class hierarchy, a property on > each class, and one individual per class - attached > AAA > DDD > BBB > CCC
Thanks for the file, which I was able to play with. I also tried something like { aaas { uri ... on BBB { propA } } } but since the schema doesn't know the relationships between AAA and BBB this doesn't work. All types in the generated schemas are independent, no implements or such. > > I was looking for a behavior that replicates unions or interfaces: > https://www.apollographql.com/docs/apollo-server/schema/unions-interfaces/ > > In fact, have tried setting graphql:isInterface = true, but that does not > seem to have any effect? graphql:isInterface is only used for round-tripping GraphQL Schema files from elsewhere, not those that are auto-generated. So I am afraid this syntax isn't working and you may need to revert to other technologies like SPARQL or ADS JavaScript to formulate such queries. Holger > > Thank you for any insight\ > Davide > > On Wednesday, November 22, 2023 at 1:44:58 AM UTC-6 Holger Knublauch wrote: >> 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 <dso...@gmail.com <>> 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 <dso...@gmail.com <>> 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 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/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 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/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 topbraid-users@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-users+unsubscr...@googlegroups.com > <mailto:topbraid-users+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/eb1d3a18-c776-4924-b365-8f0de0e16cc0n%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/eb1d3a18-c776-4924-b365-8f0de0e16cc0n%40googlegroups.com?utm_medium=email&utm_source=footer>. > <HierarchicalDataGraphTest.trig> -- The topics of this mailing list include TopBraid EDG and related technologies such as SHACL. To post to this group, send email to topbraid-users@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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/B1785C35-6703-416B-A8E5-3EE4C0239BA3%40topquadrant.com.