W3C home > Mailing lists > Public > public-rif-wg@w3.org > April 2009

Support of lists in PRD

From: Changhai Ke <changhai.ke@fr.ibm.com>
Date: Fri, 10 Apr 2009 14:07:26 +0200
To: public-rif-wg@w3.org
Message-ID: <OF9E5695F1.3829A101-ONC1257594.0042369A-C1257594.00429931@fr.ibm.com>
Hello all,

This is to express my high-level opinion about the support of lists in 
PRD. Maybe we have a slot to discuss this during the F2F. I put this in 
itemized form to be more synthetic.

·       The notion of field typed as a list (or a collection) should 
exist.
·       For a list or a collection, it would be good to have indication 
about the cardinality (min and max), and the type of element. The 
information is very useful in authoring the rules.
·       PRD 1.0 should support simply operators like:
o       Length: take the length and write tests on it.
o       Contains: does the list contain such and such element?
o       Equality: Equality between 2 lists
o       Extraction of elements, like getFirst(), getElement(n), getLast().
·       Later on (for PRD 2.0?), we could use the list / collection as a 
support for aggregates, like “the average revenue of all the customers in 
the list”, and in the action part have a construct to loop on the elements 
of the lists.

Every serious data model or object model have lists and collections, so 
PRD should definitely support the lists / collections, with the simple 
operations described above.

Changhai

Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : Tour Descartes, 2, avenue Gambetta, La Défense 5, 92400 
Courbevoie
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 609.751.783,30 €
SIREN/SIRET : 552 118 465 02430


Received on Friday, 10 April 2009 12:08:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:07:55 UTC