Hi Carl,
I am not really a user but know the code behind those features.
As you know, the TCH graphs stores the change records that make
up each working copy/workflow. This graph-based approach means
that anyone (with admin permissions) can manipulate that graph
using SPARQL or scripts such as SWP. In SPARQL, someone could
potentially issue an UPDATE request to delete all change records
related to certain workflows. Assuming the .tch graph is the
default graph, one low-level maintenance operation would be
DELETE {
?change ?p ?o .
?triple ?tp ?to .
}
WHERE {
?change a teamwork:Change .
?change teamwork:tag ?tag .
?change teamwork:added|teamwork:deleted ?triple .
?change ?p ?o .
?triple ?tp ?to .
}
which would delete any workflow-related teamwork:Change entries plus their linked triples (which are the bulk of data). This keeps the label and comment of the workflows themselves (instances of teamwork:Tag), and you may want to get rid of those too, e.g.
DELETE {
?tag ?p ?o .
}
WHERE {
?tag a teamwork:Tag .
?tag teamwork:status teamwork:Committed .
?tag ?p ?o .
}
to delete all committed workflows completely. This should significantly reduce the size of the TCH graphs.
In all of these queries you can add a FILTER, e.g. do
WHERE {
?tag a teamwork:Tag .
...
?tag teamwork:statusChange ?change .
?change teamwork:newStatus teamwork:Committed .
?change dcterms:created ?date .
FILTER (?date < "2019-01-01"^^xsd:date)
}
I have shown the SPARQL also as a way to illustrate the format of
workflows in the RDF data model.
When you open teamwork.ui.ttlx in TBC and look at
teamwork:ArchiveChangesToFile you also see a script that can be
called from the outside and probably does some of what you are
interested in. If you need a variation of this, create a clone and
call that.
In any case, before making any such calls, try them in a safe
environments, e.g. from TBC-ME, not on the actual data!
Just activating the Archive Working Copies on Commit will not retrospectively archive existing committed workflows.
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/56722c17-4adc-4816-808f-c1f5869f61e5%40googlegroups.com.
On 11/09/2019 02:17, cbur...@healthwise.org wrote:
Thanks, Holger. This is quite helpful.
What exactly does archiving an already-committed workflow do, other than removing it from the Workflows user interface?
Do you agree that it might be useful to have some of the workflow management functions we are discussing available to admins via a UI in EDG? I am considering opening a feature request ticket for those.
Yes I would encourage you to file a ticket so that we can discuss specific ideas. I assume a feature to archive all committed working copies (up to a certain date?) would be useful, if it's not already exposed through the UI somewhere.
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/524eccb6-7190-4889-bf74-3c250b056206%40googlegroups.com.