On 26/02/2019 2:40 pm, [email protected] wrote:
I can create new asset collections using teamwork:CreateProject which
is useful...
but i have a situation where in need to predict the graph URI , which
is generated from the name.
I am finding that if I create something with label "Test" it is
generating urn:x-evn:test_2 even though there is no existing
urn:x-evn:test
NB : I am removing asset collections by deleting the repositories in
TBC (its a local dev context)
What i'd like to do would be to have createProject not generate a new
URI i cant predict - as i will need to reference it in includes later.
how then do i ?
1) get access to the function that creates the generated URI from the
name before if appends a suffix to make it unique?
2) check for existence of such a thing
3) delete a data asset collection
and in the meantime
4) force it to recognise the graph doesnt exist and not generate the
extended URI ?
Just to be clear: teamwork:createProject produces a variable binding for
?graphId which contains the generated ID. This is scoped to the child
elements in the SWP script. You could then use that in includes.
Further, you can pass in arg:id to specify a graph id assuming you have
tested that it's unused beforehand, e.g. using
smf:hasFile("urn:x-evn-master:geo")
Would these options not be sufficient?
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 [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
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].
For more options, visit https://groups.google.com/d/optout.