Thank you so much! Works as exected!

Yes, I am thinking or better said, I've already decided to switch to SHACL. 
But unfortunately the transition will take some time due to some 
specialties that we've introduced and from which I want and have to become 
rid of.

Simon

Am Donnerstag, 23. November 2017 23:51:08 UTC+1 schrieb Holger Knublauch:
>
> Hi Simon,
>
> the only code that executes those fixes in our code base is in 
> TopBraid-specific extensions, so I cannot help out of the box. Some 
> untested snippet:
>
>         Command command = templateCall.getTemplate().getBody();
>         Update spinUpdate = SPINFactory.asUpdate(command);
>         UpdateRequest updateRequest = 
> ARQFactory.get().createUpdateRequest(spinUpdate);
>         DatasetGraph graphStore = createDatasetGraph();
>         UpdateProcessor processor = 
> UpdateExecutionFactory.create(updateRequest, graphStore, initialBinding);
>         processor.execute(); 
>
> As a general note, have you explored using SHACL for this? There is a 
> Suggestions vocabulary that we are using in TopBraid now as well
>
>     http://datashapes.org/suggestions.html
>
> and which is arguably easier to use as it doesn't require the extra step 
> through a template.
>
> Holger
>
>
>
> On 24/11/2017 5:28, Simon Schlosser wrote:
>
> Hi all, 
> I am struggling with creating fixes programmatically. All my search 
> efforts did not provide me with any code snippet that would show how to 
> apply them.
>
> My problem: I have a ConstraintViolation object and via getFixes() I get a 
> Collection<TemplateCall>. My defined spin:fix in the construct part of the 
> spin constraint seems to be available as e.g. the ArgumentsMap of the 
> TemplateCall contains my expected values (e.g. the Update Template that 
> should fix the error by inserting a new triple. Now, I am totally lost how 
> to execute the "fix".
>
> Are there any code examples?
>
> Thanks,
> Simon
> -- 
> 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 <javascript:>.
> 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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to