W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2006

Re: Namespace of builtin functions

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 6 Jun 2006 10:47:01 +0100
Message-Id: <62DEF70A-C6C0-40F6-AF84-CF1AC74362C5@garlik.com>
Cc: dawg mailing list <public-rdf-dawg@w3.org>
To: andy.seaborne@hp.com


On 6 Jun 2006, at 09:54, Seaborne, Andy wrote:

>
>
> Steve Harris wrote:
>> Is it correct that there's no equivalent URI for the qname  
>> looking  XPath functions, such as http://www.w3.org/TR/xpath- 
>> functions/#func- dateTime-less-than ?
>
> A couple of problems:
>
> 1/ It's "op:dateTime-less-than" and op: isn't given a namespace URI.

Oops :)

>
> 2/ F&O states:
>
> """
> The URIs of the namespaces and the default prefixes associated with  
> them are:
>     * http://www.w3.org/2001/XMLSchema for constructors --  
> associated with xs.
>     * http://www.w3.org/2005/xpath-functions for functions --  
> associated with fn.
>     * http://www.w3.org/2005/xpath-datatypes for the datatypes --  
> associated with xdt.
>     * http://www.w3.org/2005/xqt-errors -- associated with err.
> """
>
> so that makes fn:compare:

> http://www.w3.org/2005/xpath-functionscompare

Yuk.

> The forms
> http://www.w3.org/TR/xpath-functions/#func-dateTime-less-than
> http://www.w3.org/TR/xpath-functions/#func-compare
>
> come from links into the F&O document.  We could decide to use  
> those as the URIs for the functions (no unique name assumption!) if  
> that is http-range14-good.  Is that common practice?
>
>> It would sometimes be useful to call these explcitly, eg. sparql  
>> has  no built in equivalent to fn:compare().
>
> I agree - I'd like to see a namespace and URIs for all the SPARQL  
> functions. I've just come across a situation where I'd like to  
> treat everything uniformly as a function call of some kind.

Exactly, that's what caused me to ask the question. I got as far as  
writing the glue code to invoke the functions and realised that  
op:foo wasn't a real qname.

- Steve
Received on Tuesday, 6 June 2006 10:14:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:26 GMT