Clearing temp graph

12 views
Skip to first unread message

MSV

unread,
Jun 13, 2020, 8:05:44 AM6/13/20
to TopBraid Suite Users
hi,
i would like to clear the temp graph  as part of swp. is there a way to do it apart from running the delete command manually?
do we have any inbuilt service to clear the temp graphs?

And i would like to implement this only when running in a Production Instance( not in dev or qa).
so do we have any environment/system variable which tells what server the swp is running on?

Holger Knublauch

unread,
Jun 13, 2020, 8:10:00 PM6/13/20
to topbrai...@googlegroups.com


On 13/06/2020 22:05, MSV wrote:
hi,
i would like to clear the temp graph  as part of swp. is there a way to do it apart from running the delete command manually?
do we have any inbuilt service to clear the temp graphs?

I don't think we have something built-in, but it would be something like

<ui:setContext ui:queryGraph="{= ui:tempGraph }">
    <ui:update ui:updateQuery="{! DELETE WHERE { ?s ?p ?o } }" />
</ui:setContext>

which you could then turn into your own helper SWP element. Or just use a different ui:tempGraph for each task, e.g. ui:tempGraph1 also works.


And i would like to implement this only when running in a Production Instance( not in dev or qa).
so do we have any environment/system variable which tells what server the swp is running on?

Nothing comes to my mind other than setting a flag somewhere that you could query. Are there any triples that distinguish those environments on your end? Otherwise, invent some marker that only exists in your "prod" instance?

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/121bbdc2-deab-44b1-ba5f-dc1900e68267o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages