[tmcl-wg] Topic Map Constraint Language and Schematron

Robert Barta tmcl-wg@isotopicmaps.org
Wed, 14 May 2003 09:54:14 +1000


On Tue, May 13, 2003 at 11:24:36PM +0200, Lars Marius Garshol wrote:
> 
> * Anthony B. Coates
> | 
> | Robert Barta's AsTMa implements just such a thing, which he calls
> | XTMPath, although arguably a name not containing 'XTM' would be
> | better, since it really is (as I understand it) querying at the SAM
> | level rather than the XTM level.
> 
> Actually, XTMPath is different from AsTMa?. XTMPath basically is XPath
> on XTM, whereas AsTMa? is a logic-based query language that operates
> directly on the data model.

Minor correction: Both work on the data model, XTMPath only virtually
serializes it into XTM.

The nice thing about XTMPath is not so much the "drill-down"
functionality, I also use XTMPath to _create_ objects:

   my $XXXX = $xtmp->create ( '/topic[instanceOf/topicRef/@href = "#beer-brand"]' );

(copied from http://topicmaps.it.bond.edu.au/docs/13?style=printable )

\rho