Hi Holger,

In earlier mails we discussed the determination of totalCost (of some
'whole') via a helper function.


When I do as spin:rule:

CONSTRUCT {?this :totalCost ?totalCost } WHERE { LET (?totalCost :=
sumFunction (?this)).
}

it seems the box stays red although I defined:

a spin:body

SELECT SUM(?cost) AS ?totalCost
WHERE {
    ?this :hasPart_transitive ?Part .
    ?Part :cost ?cost .
    OPTIONAL {
        ?part :hasPart_directly ?anotherPart .
    } .
    FILTER (!bound(?anotherPart)) .
}


clearly I am missing the "sumFuction" definition itself but how do I
do that ? (assuming SUM is now implemented in the latest beta).

(to refresh your memory: the idea was to calculate the cost of the
whole by counting all the leaf part's cost via querying over the all
transitive parts and then filter out the atomic leafs)

thx a lot, Michel
--~--~---------~--~----~------------~-------~--~----~
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