Scott,

When I'm using this trick, if understood well,

SELECT ?school
WHERE {
    ?school a vl:School .
} LIMIT <urn:x-tb:limit>

with variable ?limit having been set in a previous module and the 
debugger showing the integer value,
I'm not able to save the query due to not being an integer SPARQL error.

Paul






On Tuesday, June 26, 2012 4:36:40 PM UTC+2, Scott Henninger wrote:
>
> Ah, just remembered.  We do have a general workaround for SPARQL 
> syntax.  Name your variable with a URN, i.e. <urn:x-tb:myVar>.  You 
> can assign it using the variable name that is the last token in the 
> URN.  I.e. 'BIND (... AS ?myVar)'.  Then use in the query, such as' 
> LIMIT <urn:x-tb:myVar>'.  I haven't tried this with LIMIT, but I know 
> it works elsewhere in TBS. 
>
> -- Scott 
>
> On Jun 26, 10:18 am, PaulZH <[email protected]> wrote: 
> > I know, but I wondered if that integer could be passed on from another 
> > module. 
> > But, deducting from your answer, it's just plain SPARQL. 
> > 
> > Paul 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Tuesday, June 26, 2012 4:14:38 PM UTC+2, Scott Henninger wrote: 
> > 
> > > Paul; Please check the SPARQL syntax on this one.  Only integers are 
> > > allowed for LIMIT. 
> > 
> > > -- Scott 
> > 
> > > On Jun 26, 9:52 am, PaulZH <[email protected]> wrote: 
> > > > question related to parameter: sml:selectQuery of SPARQLMotion 
> modfule: 
> > > > sml:SerializeSPARQLResults 
> > 
> > > > Is it possible to set the LIMIT of the SPARQL SELECT from outside? 
> > 
> > > > SELECT * 
> > > > WHERE { 
> > > >     ?a a vl:School .} 
> > 
> > > > LIMIT ?comingfrompreviousmodules.

-- 
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary 
Network (EVN), TopBraid Composer, TopBraid Live,
TopBraid Ensemble, SPARQLMotion, SPARQL Web Pages 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