Re: TMQL: Direct (super|sub)types?
Lars Marius Garshol <[email protected]>
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
* Lars Heuer
>
> Even if I try to restrain me: What are *direct* supertypes/subtypes?
Consider a type hierarchy like:
- organization
- company
- foundation
Now, let's say you want to find those topics which are explicitly marked in the topic map as instances of "organization", so that you can tell people to turn them into instances of one of the subtypes. (For example.)
Similarly for direct-subtype. Let's say you want to visualize the type hierarchy. If querying for the subtypes of A always returns also indirect subtypes, how are you going to do it?
We included 'direct-instance-of' in tolog and are very glad we did, because while it's quite a bit less common than 'instance-of' it's used quite a bit.
--Lars M.
http://www.garshol.priv.no/tmphoto/
http://www.garshol.priv.no/blog/