Re: TMQL: Direct (super|sub)types?

Rani Pinchuk <rani.pinchuk-tztinFsz/[email protected]>
Newsgroups gmane.text.xml.xtm.general
Message-ID <[email protected]>
Dear Lars,

A simple use case will be just to provide a graphical visualization of 
the hierarchies in the topic map.

For example, I would use the direct-subtype path expression when 
building the following hierarchy graph for the works in the Italian Opera:

    work .
         +---- Literary work .
         |                   +-- Dictionary
         |                   +-- Novel
         |                   +-- Novella
         |                   +-- Play
         |                   +-- Poem
         |
         +----- Musical work .
         |                   +-- Aria
         |                   +-- Ballet
         |                   +-- Opera

...

Or maybe, you prefer to avoid from having "direct-supertypes" and 
"direct-subtypes" in TMQL because we can always use association pattern 
as an alternative:

t1 / supertype-subtype(subtype->supertype)
# is the same as:
t1 / direct-supertype

Kind regards,

Rani






On 01-Mar-2011 10:02, Lars Heuer wrote:
> Hi Robert,
>
> [...]
>> Topic type A is a direct subtype of topic type B, if and only if 'A
>> ako B' is true.
>
> Do you have a use case for it? In my way of thinking X is an instance
> of Y or not. Regardless how the relationship was established and how
> many associations are involved to model the relationship. Why do you
> need (in)direct (super|sub)types?
>
> Best regards,
> Lars

-- 
Rani Pinchuk
Project Manager
Space Applications Services
Leuvensesteenweg, 325
B-1932 Zaventem
Belgium

Tel.: + 32 2 721 54 84
Fax.: + 32 2 721 54 44

http://www.spaceapplications.com
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.