On 25/03/2019 3:15 pm, Rob Atkinson wrote:


I get an error  when trying to use the AddGraph sparqlmotion module.

java.lang.IllegalArgumentException: Cannot find module type for http://my.org#AddGraph_1 (instance of http://topbraid.org/sparqlmotionlib#AddGraph)

there is only one thing i am doing in setup which is set the graph uri, with a xsd:string as it asks for.

Thanks for the report. This module had been removed a while ago yet its documentation and declaration was still floating around, as a ghost. I have completely removed it for 6.2. It's equivalent to using sml:PerformUpdate with something like

INSERT {
    GRAPH ?uri {
        ?s ?p ?o
    }
}
WHERE {
    ?s ?p ?o .
}


what I want to do is insert some metadata into a related graph to capture timing as i iterate through some processing, and this seemed to be the only obvious way to update a graph within a loop without replacing the current graph - since I cant just hang it off the side because a loop body must have a single target node - so need to update this with a new constructed graph then zap its contents before merging back into the main processing stream.
So why exactly wouldn't sml:PerformUpdate just work? Maybe sml:Merge helps as a dummy node to connect parallel execution streams in SM?

Also, is there a way to check a graph exists - i.e. create an output file only if it doesnt already exist?

Use something like smf:hasFile("http://topbraid.org/teamwork";)

Thanks,
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 [email protected] <mailto:[email protected]>.
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to