[topicmapmail] tolog vs. TMQL - TMQL in general

Rani Pinchuk rani.pinchuk at spaceapplications.com
Thu Jul 2 09:36:33 EDT 2009


Just to fix the comparison:

Robert Barta wrote:
> On Wed, Jul 01, 2009 at 06:44:40PM -0400, Thompson, Miles wrote:
> 
>> I guess I found this (TOMA) syntax..
>>
>>  select $opera where
>>  $opera.(result)<-(based-on)->(source)
>>       .(work)<-(written-by)->(writer).name = 'Shakespeare'
>>       and (composed-by)->(work) = $opera
>>

The above should be compared with (draft TMQL):

          select $OPERA
           where
                  "Shakespeare" \ name
                  <- writer [^written-by] -> work
                  <- source [^based-on]   -> result == $OPERA
      &  exists $OPERA <- work [^composed-by]

And with (Tolog):

   select $OPERA
    where
      composed-by(work: $OPERA, composer: $COMPOSER) &
      based-on(result: $OPERA, source: $WORK) &
      written-by(work: $WORK, writer: $WRITER) &
      topic-name($WRITER, "Shakespeare")

(I hope I got it right. Please fix me if there are mistakes)

Indeed TMQL provides some nice shortcuts, but not everybody likes the 
TMTOWTDI principal which is clearly present in the draft TMQL.

Kind regards,

Rani

-- 
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


More information about the topicmapmail mailing list