TMQL - Proposal: Removal of reifier axis
Lars Heuer <[email protected]> Sat, 30 Apr 2011 10:08:29 +0200
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Organization | Semagia |
| Message-ID | <[email protected]> |
Hi there, I don't know how TMQL would/should look alike, but I wonder if the reifier axis could be made implicit (probably we have to keep an explicit reifier axis though). If we take the Topic Maps slogan "everything is a subject/topic" seriously, why shouldn't it be possible to ask an association *directly* for its names without the "give me the reifier of the association and then all names" step (syntax-wise)? Example: TMQL 2008 //tmdm:association >> reifier >> characteristics tmdm:topic-name vs. //tmdm:association >> characteristics tmdm:topic-name or (if you don't like the >> syntax): //tmdm:association/*[. isa tmdm:topic-name] would return all names of all topics which reify an association. Is the "reifier" step really useful? If the user wants to query all names of an association, the user already assumes that it is reified. The proposal is not limited to associations but all reifiable Topic Maps constructs. In the other direction (topic -> reified) it would be possible to ask a topic for its datatype iff the topic reifies an occurrence/variant or for its roles iff the topic reifies an association. 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