> Date: Tue, 14 Dec 2004 22:14:46 +0000
> From: Dr Robert Sanderson <[log in to unmask]>
>
> > Conclusion: the URIness or otherwise of a term's structure tells
> > us nothing about whether that term is to be interpreted as a
> > string or a term. URIness is orthogonal.
>
> Not at all. It tells you how you should break up the term.
>
> foo.text any "http://a.b.c/d/e z3950r:a.b.c.d/e?f=g"
>
> If you were to tell me that the term structure was word, I would find you
> the following words:
> "http a b c d e z3950r a b c d e f g"
>
> But if you tell me that it's a string, I'll find you one string. If
> you tel me it's a URI, then I'll find you two URIs like you
> intended.
Wow. That is one contrived example! :-)
Still; Eliot has in any case persuaded me, in an off-list
conversation, that URI structure does make sense (although I argue
that there is rarely any good reason to use it.) So I am not trying
to get it removed or anything. I just want the CQL context set prose
to clearly reflect the crucial string-vs.-word distinction.
> >> [...] unless the server thinks that it should be numeric
> >> equality. (eg if the term is numeric and the index is numeric)
> >
> > Eh? I certainly don't remember agreeing this. It seems dangerously
> > error-prone to me. I don't think the server can recognise what is and
> > isn't a "number" lexicographically.
>
> weather.temperature = 3
>
> I'm going to treat that as a number unless told otherwise because
> that's the "right thing to do". Hence I'll match 3.00 and 000003
> not just the string/word of "3"
deweyDecimalCode = 123.0
You'd better not treat that as matching records with DDC "123".
> > Let me re-state it this way: when I search for
> > foo < fruit
> > is "fruit" to be interpreted as a string or a word?
>
> Totally unspecified, I think.
I agree. That's my point.
_/|_ _______________________________________________________________
/o ) \/ Mike Taylor <[log in to unmask]> http://www.miketaylor.org.uk
)_v__/\ "However, the latter program is probably far more difficult
to understand than the former. (The former took me about
two hours to write. The latter I stumbled upon by pure
luck and it took me two hours to read.)" -- David Madore,
"The Unlambda Programming Language".
--
Listen to free demos of soundtrack music for film, TV and radio
http://www.pipedreaming.org.uk/soundtrack/
|