Hi Fan Li,
you can attach a graphql:name to your class/node shape or to property
shapes. In your case, try adding a triple
ex:c87d21f6-2c4e-11b2-8091-0242ac120019 graphql:name "carModel"
The values of graphql:name must be valid GraphQL identifiers, i.e. not
contain spaces or special characters. It's just an annotation property
that doesn't really change your ontology - other tools will just ignore
this triple.
You may need to edit the source code to add the triple above.
Holger
On 28/07/2020 23:30, Fan Li wrote:
I am very excited to explore the GraphQL capability in EDG but it
seems class with UUID URI has some readability issue in GraphQL query.
A comparison:
A GraphQL query for class ex:carModel:
{
ex_carModel (orderBy: label) {
label
}
}
A GraphQL query for class ex:c87d21f6-2c4e-11b2-8091-0242ac120019:
{
ex_c__d__f___c_e___b___________ac______s (orderBy: label) {
label
}
}
Since I don't have the option to change the ontology, is there
anything else I can do?
--
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/b825d2d5-6e52-466e-b134-4ba71452f061n%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/b825d2d5-6e52-466e-b134-4ba71452f061n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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/02a4b307-b060-930d-1faf-e1e66394e257%40topquadrant.com.