Re: [DTB] missing string predicates?

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