Andrew; It's not all that simple after all, as you are looking to
perform procedural actions in a query language.  One approach is to
use SPINx - define a SPIN function that calls a Javascript function.

It's also common to construct if-then mappings into the model.  E.g.
  :t1 :test 1^^xsd:integer
  :t1 :value "when count=1"
  :t2 :test 2^^xsd:integer
  :t2 :value "when count=2"
...

then you can do a straightforward SPARQL graph match to select the
condition:
  ?s :test ?count .
  ?s :value ?value .

-- Scott

On Jan 18, 8:44 am, AndrewB <[email protected]> wrote:
> I'm trying to figure out a way in sparql/spin to do, if ?count = 4,
> then ____ or if ?count = 2 then __ and so on (hopefully without doing
> each case)  I looked at regex.  Does anyone have any ideas, it
> probably really simple its just 2 early in the morning :)
-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en.


Reply via email to