On 26/03/2019 2:48 pm, Rob Atkinson wrote:
thanks Holger

that works.

one final question - when i insert into a graph thats open in TBC it doesnt write it to the workspace - it shows up as a modified file in the IDE - it there a way to force it to write?

No, I don't think so. Just don't have the file open in TBC (it's a debugging tool in this case). In particular, having graphs that are backed by EDG (urn:x-evn-master:XY) open can cause problems unless you know exactly what's happening.

Holger



Rob


On Tuesday, 26 March 2019 09:54:52 UTC+11, Holger Knublauch wrote:

    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
    <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";
    <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] <javascript:>.
    For more options, visit https://groups.google.com/d/optout
    <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] <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