Hi Bernd,

to add or remove triples, don't go directly through the TCH graph. That's too 
error prone and it's much simpler to do this

let workflowGraph = tbs.queryGraph('workflow_1');
graph.transaction(workflowGraph, 'Adding a triple', () => {
    owl.Thing.add(rdfs.seeAlso, owl.Nothing);
});

Which will create the added triple in the given workflow and record it properly 
in the change history.

Does this give you enough clues to proceed?

Holger


> On 4 Feb 2025, at 9:11 AM, Bernd Johannes <[email protected]> wrote:
> 
> Hello everybody,
> I struggle to find the right sequence of actions to select a workflow and 
> mutate data within via ADS.
> 
> I would appreciate a solution template, that documents the relevant steps.
> 
> The situation:
> in ontology M there is a modify action bound to owl:Ontology that should:
> 
> - select ontology A 
> - select a specific workflow T in that ontology A.
> - then add and remove some triples in that workflow (so that it gets part of 
> the workflow changes - no direct write to the underlying ontology A)
> 
> I am aware about the data structure in the teamgraph and have no problems to 
> solve the problem in SPARQL - however SPARQL does not allow me to write into 
> the workflow - only to the underlying ontology A directly.
> 
> I read, that I also should not use graph.transaction(<target>, ...) where I 
> could provide A->T as <target> resource, as this bypasses the workflows.
> 
> Is there a solution pattern?
> 
> Thanks for your suggestions.
> Greetings
> Bernd
> 
> 
> 
> 
> -- 
> The topics of this mailing list include TopBraid EDG and related technologies 
> such as SHACL.
> To post to this group, send email to [email protected]
> --- 
> 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 visit 
> https://groups.google.com/d/msgid/topbraid-users/f200a66f-46f1-436c-9eae-cda108c45f63n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/f200a66f-46f1-436c-9eae-cda108c45f63n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
The topics of this mailing list include TopBraid EDG and related technologies 
such as SHACL.
To post to this group, send email to [email protected]
--- 
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 visit 
https://groups.google.com/d/msgid/topbraid-users/74F86342-FABB-4714-A4D9-48A51580F79E%40topquadrant.com.

Reply via email to