W3C home > Mailing lists > Public > public-rif-wg@w3.org > December 2007

Re: [TED] ACTION-385 DONE (Start document for the list of builtins)

From: Jos de Bruijn <debruijn@inf.unibz.it>
Date: Mon, 10 Dec 2007 13:30:19 +0100
Message-ID: <475D315B.1050006@inf.unibz.it>
To: Paula-Lavinia Patranjan <paula.patranjan@ifi.lmu.de>
CC: public-rif-wg@w3.org
I believe this list of functions for manipulating data values and
comparators for comparing existing data values is a good start.

I think we need at least two additional categories of built-ins:

* testing whether a specific value is of a specific datatype.

E.g., isString/1 could be a built-in predicate whose extension is always
the value space of xsd:string; i.e., it tests whether its argument is a
string.
I think we need such a predicate for each datatype.

* testing whether a specific value is not of a specific datatype.

E.g., isNotString/1 could be a built-in predicate whose extension is
always the complement of the value space of xsd:string; i.e., it tests
whether its argument is not a string.
I think we need such a predicate for each datatype.


Apart from that, we might want to think about having constructor functions.
E.g., a built-in predicate constructDate/4 could be used for
constructing xsd:date values; the first argument would be the return
value (an xsd:date), the second argument would be the year, the third
argument would be the month, and the fourth argument would be the day.
If we were to implement it as a function, constructDate/3 would take a
year, a month, and day as its arguments, and return an xsd:date.


Best, Jos



Paula-Lavinia Patranjan wrote:
> 
> Hi,
> 
> as discussed during our last telecon, I started a new list of
> built-ins to be used for the next RIF-BLD document. The
> current list [1] is based on the initial list [2] of functions and
> operators from XQuery 1.0 and XPath 2.0 and the discussion
> on built-ins within the group. I also started a list of open issues
> to be discussed wrt. built-ins for BLD and, more general, other
> RIF dialects, which is based on Dave's email [3] and the
> discussion we had during the telecon this week.
> 
> REWERSE holds its final annual meeting next week and I won't
> be able to attend the next telecon, but will do my best to update
> the current built-ins list based on your comments.
> 
> I'm not quite sure about the desired structure of the document
> for the final list of BLD built-ins, but we can discuss this issue
> after we've decided upon the built-ins we want BLD to support.
> At moment there is no link to the new page of BLD built-ins from
> the working version of the BLD document.
> 
> [1] http://www.w3.org/2005/rules/wg/wiki/List_of_BLD_built-ins
> [2] http://www.w3.org/2005/rules/wg/wiki/List_of_functions_and_operators
> [3] http://lists.w3.org/Archives/Public/public-rif-wg/2007Jul/0038.html
> 
> Regards,
> Paula
> 
> 

-- 
Jos de Bruijn            debruijn@inf.unibz.it
+390471016224         http://www.debruijn.net/
----------------------------------------------
If you live to be one hundred, you've got it
made. Very few people die past that age.
  - George Burns


Received on Monday, 10 December 2007 12:30:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:33:44 GMT