Hi Fan Li,

there is currently no way to control this further - the class name uses the 
local name only. You're right that it could potentially use graphql:name for 
that purpose and I have taken a note for that. But I haven't heard this need 
from other customers.

Holger


> On 28 Jul 2022, at 2:23 pm, Fan Li <[email protected]> wrote:
> 
> Hi Holger, I am following up on this previous question regarding UUID URI and 
> GraphQL. While using the graphql:name triple makes GraphQL query more 
> readable, in ADS script the auto-generated API still uses the UUIDs as class 
> names which is difficult to use. Any suggestions?
> 
> <2022-07-28 142122.png>
> 
> On Tuesday, July 28, 2020 at 9:55:25 PM UTC-4 Fan Li wrote:
> Thanks, Holger. This is exactly what I need.
> 
> On Tuesday, July 28, 2020 at 7:16:20 PM UTC-4 Holger Knublauch wrote:
> 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 [email protected] <>.
>> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/f41f2925-889c-426f-a680-deb2ee8ebfe1n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/f41f2925-889c-426f-a680-deb2ee8ebfe1n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <2022-07-28 142122.png>

-- 
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/8D3ADB72-F17E-4DD8-B6F6-67BBE4D2CAAD%40topquadrant.com.

Reply via email to