agwilson wrote: > Relatively new to SMW here... but I'm using an inline <ask> query to retrieve > all pages that contain an attribute beginning with a specific letter.
That feature isn't available. The :=* syntax in SMW search that controls what is shown isn't a subset of globbing or regular expressions. The underlying SQL attribute storage can support WHERE attribute_title LIKE 'M%' but the query parsing doesn't do this. The closest you can get in SMW 0.7 is to use the comparator operators on an attribute. The help gives the example of [[Category:Actor]] [[height:=>6 ft]] [[height:=<7 ft]] But (surprisingly?), this works even for attributes of type string, so I think this will be close to what you want: [[TermName:=>M]] [[TermName:=<N]] Note that string comparison behavior (case sensitivity, collation, comparison of strings of different length, etc.) is database-specific. -- =S Page ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Semediawiki-user mailing list Semediawiki-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-user