Hello Matt,
correct, this isn't supported at the moment, and you're right it should work in principle. I have recorded an internal development ticket (TBS-4783) for a future version.
Meanwhile, if that's an option, you could use JavaScript/ADS
scripting for similar purposes, with a similar syntax. ADS
includes a function graph.newURI(type) that will look at the URI
construction rules.
The advantage here over GraphQL is that you can actually DO
something with the generated URIs because you can assign them to
variables and use those variables in other places, e.g. to define
further references:
someCountry.capital = newCity;
GraphQL would be a bit of a one-way-street where you can create
instances but then would need to make additional queries to
process the newly generated instances. In the case of
auto-generated URIs you wouldn't even know what those generated
URIs are.
Holger
--
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/a6e70516-dc62-4f82-9d12-b2fca1d97b55n%40googlegroups.com.
Agreed, ADS is more flexible. But for simple things it's convenient to be able to go through GraphQL since it's less work, especially since it is hooked into SHACL validation and the Teamwork change history.
FYI ADS is also using SHACL validation and the change history. That's how the Preview button on the Script Editor panel is implemented.
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/71bd0b75-7203-4025-bbbb-927d385b3dbbn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/7Pg-GGGcmR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/6046cf2d-0986-ea9f-bd6f-ab2d74b8fb12%40topquadrant.com.
No, there is no such global setting. strict needs to be repeated.
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/3ff2edfe-bdea-475a-a84a-18f7d2323e0bn%40googlegroups.com.
A couple follow up questions on this:
- If I wanted to customize the message added to the change associated with running a script, is the easiest way to use graph.transaction?
- What is the easiest way to validate that any changes produced by running a script do not violate any SHACL constraints before actually making the changes, like how strict=true prevents GraphQL changes if there are issues?
See the documentation of graph.transaction:
In particular you can use graph.changes.rollBack():

You can call graph.changes.rollBack() based on the outcome of tbs.validate()
HTH
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/5681eae0-42f0-4c8c-afc1-1696fdccda15n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/7Pg-GGGcmR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/120e74bc-32e3-67bb-5dae-4508966adb98%40topquadrant.com.