W3C home > Mailing lists > Public > www-rdf-logic@w3.org > February 2003

Newbie question: is it possible to compute a math:list with cwm?

From: Bowen Alpern <alpernb@us.ibm.com>
Date: Fri, 21 Feb 2003 15:19:18 -0500
To: www-rdf-logic@w3.org
Message-ID: <OF0A775B07.FD6AD4BE-ON85256CD4.006DF256@us.ibm.com>





Suppose I wanted to sum the :balances of all the :acounts of a given
:Person. I believe that if I had a ?list of all the :account :balances,
math:sum would give me what I want:

   ?list math:sum ?n

would constrain ?n to the right answer.  But, how do I compute (constrain?)
?list in the first place?  Can this be done?

Thanks,

      Bowen
Received on Friday, 21 February 2003 15:55:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:43 GMT