> On 13 Sep 2022, at 17:14, 'GaBriella Branson' via TopBraid Suite Users > <[email protected]> wrote: > > Your warning is duly noted, David. I will refrain for the moment. Because we > are in our "staging" instance and simply testing/exploring, what happens if > we simply delete the collection? Does this remove all the workflows and the > schedule? Or does it leave the workflows and schedule out in limbo land?
Workflows are related to the collection and each collection “graph” has a related change history “graph", so the related workflows and all related change history will be deleted entirely if you delete the collection. Note that before going this far, you could simple Clear Change History (under Manage tab) for the collection and then you do not have to delete its content. Cheers, David > > On Tuesday, September 13, 2022 at 5:04:41 AM UTC-8 David Price wrote: > Although, there is not really a better solution at the moment, SPARQL queries > modifying a TCH graph are a bit dangerous … mistakes are always possible. > > So … I would take great care in doing this. Take a backup just before doing > any editing so that worst-case you can restore from the backup and try again. > Test carefully by viewing the Change History for the collection and for > specific assets in the collection before declaring success. > > Cheers, > David > > >> On 13 Sep 2022, at 08:07, Holger Knublauch <[email protected] >> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>> wrote: >> > >> >> >>> On 12 Sep 2022, at 7:14 pm, 'Branson, GaBriella C' via TopBraid Suite Users >>> <[email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>> wrote: >>> >>> Thanks, John. I have yet to test it out as our EDG is hanging up on us…but >>> I can see from the logs that our cancel was behaving as expected - now to >>> get into the collection and edit the import per your instructions. >>> >>> Do you have any advice on cancelling a massive load of workflows? There are >>> over 800 that have been created because of this scheduled import. >> >> One way to batch-delete hundreds of workflows is by going to the SPARQL >> endpoint page >> >> .../tbl/sparql >> >> as administrator, assuming SPARQL Updates are enabled in the advanced server >> configuration parameters. In the drop down below the query editor field, >> select the Default Graph to be like urn:x-evn-master:XY.tch where XY is the >> ID of your asset collection - this is the part before the .editor in the URL >> of the main editor. For example for the geography taxonomy this would be >> urn:x-evn-master:geo.tch - note the .tch is the graph containing the >> metadata about the workflows. >> >> Then, to delete all workflows, run these queries in sequence. >> >> # Delete all added and deleted triples from all workflows >> PREFIX teamwork: <http://topbraid.org/teamwork# >> <http://topbraid.org/teamwork#>> >> DELETE { >> ?triple ?p ?o . >> } >> WHERE { >> ?tag a teamwork:Tag . >> ?change teamwork:tag ?tag . >> ?change teamwork:added|teamwork:deleted ?triple . >> ?triple ?p ?o . >> } >> >> >> # Delete other change metadata >> PREFIX teamwork: <http://topbraid.org/teamwork# >> <http://topbraid.org/teamwork#>> >> DELETE { >> ?change ?p ?o . >> } >> WHERE { >> ?tag a teamwork:Tag . >> ?change teamwork:tag ?tag . >> ?change ?p ?o . >> } >> >> >> # Delete status transitions >> PREFIX teamwork: <http://topbraid.org/teamwork# >> <http://topbraid.org/teamwork#>> >> DELETE { >> ?sc ?p ?o . >> } >> WHERE { >> ?tag a teamwork:Tag . >> ?tag teamwork:statusChange ?sc . >> ?sc ?p ?o . >> } >> >> >> # Delete workflow itself >> PREFIX teamwork: <http://topbraid.org/teamwork# >> <http://topbraid.org/teamwork#>> >> DELETE { >> ?tag ?p ?o . >> } >> WHERE { >> ?tag a teamwork:Tag . >> ?tag ?p ?o . >> } >> >> >> There are ways to automate this using scripts, but in your version this >> would require uploading SWP files which I didn't want to require. >> >> Note that the above will delete *all* workflows including past ones. To only >> delete certain workflows, you'd need to filter the ?tag by some criteria >> such as by creation date. Let me know if you need that step as well. >> >> NB: From versions 7.3 onwards, the above could be automated much more easily >> using the (ADS) Script Editor panel: >> >> tbs.workflows().forEach(tbs.deleteWorkflow) >> >> HTH >> Holger >> >> >>> >>> GaBriella Branson >>> Wildland Fire Data Management Program - Knowledge Manager >>> >>> Stay Connected! Sign up to receive email updates from the Wildland Fire >>> Data Management Program >>> <https://public.govdelivery.com/accounts/USDOI/subscriber/new?qsp=USDOI_6> >>> >>> From: [email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40> >>> <[email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>>On Behalf Of John >>> Beard >>> Sent: Monday, September 12, 2022 9:06 AM >>> To: TopBraid Suite Users <[email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>> >>> Subject: [EXTERNAL] [topbraid-users] Re: Cancel Scheduled Import >>> >>> >>> >>> This email has been received from outside of DOI - Use caution before >>> clicking on links, opening attachments, or responding. >>> >>> >>> >>> Hi GaBriella, >>> >>> The cancel button only cancels the currently executing job. To cancel >>> future executions you need to edit the job configuration in the data asset >>> collection and clear the cron expression field. >>> On Monday, September 12, 2022 at 12:33:22 PM UTC-4 [email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>wrote: >>> We had a user schedule a JDBC import to occur every five minutes and it is >>> causing a few issues. I have gone into Scheduled Jobs under Server >>> Administration and attempted to hit the cancel button: >>> >>> >>> But the screen merely flashes and the import continues to run. Am I >>> supposed to be cancelling from within the collection? >>> >>> Thanks in advance. >>> -- >>> 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/aGy6uYlFKUE/unsubscribe >>> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Ftopic%2Ftopbraid-users%2FaGy6uYlFKUE%2Funsubscribe&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7Cd89b3d78ab4c49540d4208da94e14306%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637985992462661722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EuasIh%2B0PgyaUkyUlqe6thUSZJLI8ntIdwrIWdAPTBE%3D&reserved=0>. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/topbraid-users/b64f332d-0d43-48e8-8b1e-9d46569dcfeen%40googlegroups.com >>> >>> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Ftopbraid-users%2Fb64f332d-0d43-48e8-8b1e-9d46569dcfeen%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=05%7C01%7Cgabriella_branson%40ios.doi.gov%7Cd89b3d78ab4c49540d4208da94e14306%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637985992462661722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8PE0TfCra78EV5T1tE8k0re%2FElFowMD6a9IPk3cAONc%3D&reserved=0>. >>> >>> -- >>> 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] >>> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319B24850E0941F919A95FDDA449%40CO6PR09MB7319.namprd09.prod.outlook.com >>> >>> <https://groups.google.com/d/msgid/topbraid-users/CO6PR09MB7319B24850E0941F919A95FDDA449%40CO6PR09MB7319.namprd09.prod.outlook.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] >> <applewebdata://C01176C7-CC18-4427-A706-08747E2BBA40>. > >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/topbraid-users/099F5162-1BFC-449D-8390-9DC1B1718098%40topquadrant.com >> >> <https://groups.google.com/d/msgid/topbraid-users/099F5162-1BFC-449D-8390-9DC1B1718098%40topquadrant.com?utm_medium=email&utm_source=footer>. > > UK +44 (0) 7788 561308 <tel:+44%207788%20561308> > US +1 (336) 283-0808 <tel:(336)%20283-0808> > > > -- > 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/ccbc1b96-9057-4b33-9ce8-47861e01f0fen%40googlegroups.com > > <https://groups.google.com/d/msgid/topbraid-users/ccbc1b96-9057-4b33-9ce8-47861e01f0fen%40googlegroups.com?utm_medium=email&utm_source=footer>. UK +44 (0) 7788 561308 US +1 (336) 283-0808 -- 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/3F92D8DE-F929-4213-BBAF-163A658C9F06%40topquadrant.com.
