W3C home > Mailing lists > Public > public-rif-wg@w3.org > June 2008

Re: [DTB] missing string predicates?

From: Axel Polleres <axel.polleres@deri.org>
Date: Thu, 19 Jun 2008 09:28:21 +0300
Message-ID: <4859FC85.9010403@deri.org>
To: Gary Hallmark <gary.hallmark@oracle.com>
CC: RIF WG <public-rif-wg@w3.org>

Gary Hallmark wrote:
> 
> to compare if number N1 is less than N2
> 
> pred:numeric-less-than(N1 N2)
> 
> to compare if string S1 is less than S2
> 
> pred:numeric-less-than(func:compare(S1 S2) 0)
> 
> I would prefer
> 
> pred:string-less-than(S1 S2)
> 
> I propose we add
> 
> pred:string-equal
> pred:string-not-equal
> pred:string-greater-than
> pred:string-less-than
> pred:string-greater-than-or-equal
> pred:string-less-than-or-equal
> 
> I also propose we either
> a. remove func:compare

I used the XPath/Xquery functions as a basis (where there are no such 
comparisons except "compare" for strings)

to be discussed.

Axel

> or
> 
> b. rename to func:string-compare, and add
> func:numeric-compare
> func:date-time-compare
> ... and so on for all builtin types that are comparable
> 


-- 
Dr. Axel Polleres, Digital Enterprise Research Institute (DERI)
email: axel.polleres@deri.org  url: http://www.polleres.net/

Everything is possible:
rdfs:subClassOf rdfs:subPropertyOf rdfs:Resource.
rdfs:subClassOf rdfs:subPropertyOf rdfs:subPropertyOf.
rdf:type rdfs:subPropertyOf rdfs:subClassOf.
rdfs:subClassOf rdf:type owl:SymmetricProperty.
Received on Thursday, 19 June 2008 06:29:04 UTC

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