-users@googlegroups.com
[mailto:topbraid-composer-users@googlegroups.com
] On Behalf Of Scott Henninger
Sent: 17 March 2009 18:30
To: TopBraid Composer Users
Subject: [tbc-users] Re: own functions in spin:rules
Yes. The way ?this works is that it is applied to all instances of
the class
Replying myself after reading the manual :)
I now first defined a subclass of sp:Functions called sumFunction.
Then I defined a spin:constraint for it: Argument sp:arg1 : House
Finally I defined a body for it (delete at House...):
SELECT SUM(?cost) AS ?totalCost
WHERE {
arg1
@googlegroups.com
[mailto:topbraid-composer-us...@googlegroups.com] On Behalf Of Scott Henninger
Sent: 17 March 2009 15:44
To: topbraid-composer-users@googlegroups.com
Subject: [tbc-users] Re: own functions in spin:rules
It seems that somewhere the function is not getting defined in the right
places