[tmql-wg] TMQL names vs. occurrences

Lars Heuer heuer at semagia.com
Mon Dec 11 11:17:28 EST 2006

Hi Robert,

>>      select $p/surname[* tmdm:name] where $p isa person

> Exactly.

That's cool. :)

Last question: My assumption that the queries (a) and (b) are
equivalent, is correct?

        a) select $p/surname[* tmdm:name] where $p isa person

        b) select $p/tmdm:name[* surname] where $p isa person

> If someone is concerned about any ambiguity in his data (read: "I want
> _names_ only"), then additional filtering will have to be introduced:

>    select $p / homepage [ * name ]

> But I do not expect that this is the main stream case. Normally most
> notations will encourage that occurrences and names have distinct type
> structures.


Best regards,

More information about the tmql-wg mailing list