Hello all,

I would like to write a spin:rule that sums integers connected with a
resource and then connects the sum to the resource. For example, if a
resource exists such that

example:resource example:has_part "1"^^xsd:integer
example:resource example:has_part "2"^^xsd:integer

Is it possible to write a spin:rule that would take these numbers, sum them
and assert

example:resource example:has_sum_value "3"^^xsd:integer

This seems like it would be relatively straightforward, but I don't know to
handle a case in which it is not known beforehand how many numbers there are
to be summed.

Any help is appreciated, thanks,

Alison

-- 
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