[tmql-wg] Result set requirements
Tue, 24 Feb 2004 08:20:33 -0500
> Introducing all TMDM data structures would probably add another
> type dimension into TMQL.
> One option we have is to treat this as "language pragma"
> pragma INTERFACE_MODEL (TMDM)
> return $t/bn # returns basename item
> pragma INTERFACE_MODEL (simple)
> return $t/bn # return string
> pragma INTERFACE_MODEL (maplet)
> return $t # returns topic as part of a maplet
> only allowed on the outest level so that it does not affect language
> semantics, but only interface semantics.
> Or, to choose a reasonable default and use 'ATTRIBUTE'
> (meta-information on data):
> return $t/bn'TMDM # returns basename as item
> return $t/bn # default is stringification
> return $t/bn'VALUE # same
I personally prefer explicit XQuery-like constructors.
We can have constructors for XML, lists and Topic Maps as default set.
And we can allow to provide additional set of constructors (wiki pages,
Constructors, I think, can be mixed with any "select" query language.