Re: TMQL: Minor issue: Plurals for paths

Lars Heuer <[email protected]>
Newsgroups gmane.text.xml.xtm.general
Organization Semagia
Message-ID <[email protected]>
Hi Benjamin,

> I wonder why this "minor issue" as you call it upsets you so much in
> 2011 but it did never upset you in the last years. The axis names are
> plural since at least N826 [1] and you never complained about that.

That's right. Maybe I have just overlooked this issue in the earlier
drafts since I never liked the syntax of the navigation section.

[...]
> Why do you want somebody else to explain your (IMHO strange) ideas to
> you? Writing "How does" you assume this is the case, but it is not.
> Your first example query would return all occurrences of type homepage
> while the latter would return nothing.

Yes, that's what I said (supposed to say?) in my msg. Anyway, since
the "s" for plural/multiple results seems to be gone, you can safely
ignore the "How does" :)

> The following queries each return _all_ occurrences of type homepage:

>     topic / homepage
>     topic / occurrences(homepage)

Yes, I understood that.

These queries should also work (unsure if the second query is still
allowed, though):

    topic/occurrences()[./type = homepage]


    topic/occurrences()[. isa homepage]

My point is that translating

   topic/occurrence into topic/*[. isa tmdm:occurrence]

seems to be more more logical, given that

   topic/homepage

is also translated into topic/*[. isa homepage]

IMO there is a logical break; given that

    topic/tmdm:occurrence   # singular

yields the same result as

    topic/occurrences()     # plural


Anyway, as said, this is a minor issue. I just came back to this issue
because of a chatting session.

Best regards,
Lars
-- 
Semagia 
<http://www.semagia.com>

<https://twitter.com/larsheuer/> Twitter
<http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list
<http://tinytim.sourceforge.net/> Open Source Topic Maps engine
<http://mappa.semagia.com/> Mappa - Python Topic Maps engine
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.