Catrina, The <urn:var:varname> syntax is an alternative syntax to ?
varname that is necessary because the SPARQL syntax expects a URI, not
a variable, in MODIFY GRAPH <>, INSERT INTO <>, and DELETE FROM <>.

Therefore you can set up an argument (spin:constraint) in your SPARQL
Function (aka "SPIN FUnction") to receive the name of the graph that
you want to apply the query to.  Let's say you define the argument as
sp:graphToModify.  This binds the variable ?graphToModify to the
argument.  The alternative syntax is <urn:var:graphToModify>, which
can be used in the PerformUpdate statements.

-- Scott

On Sep 8, 9:58 am, Catrina <[email protected]> wrote:
> Hello,
>
> I have a SPIN function that is defined with a SPARQLMotion script
> which contains some PerformUpdate modules.  I'd like to set the named
> graph dynamically in the PerformUpdate modules with a method that was
> posted in a previous Google User group posting.
>
> For reference, I am looking into Holger's solution back in May from
> the following 
> post:http://groups.google.com/group/topbraid-users/browse_thread/thread/6a...
> Message snippet:
>      <urn:var:VAR_NAME>
>      where VAR_NAME is the name of a bound SM variable. Example:
>      INSERT INTO <urn:var:targetGraph>
>
> In my script, I'd like to set the graph as tb-session at times, but
> other times I'd like to set the graph more specifically to named
> graph.  Is it possible to set the tb-session to VAR_NAME in the
> solution shown above?
>
> Thanks,
> Catrina

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to