Daniel Israel wrote: > I've upgraded to 1.0.1, and I have two questions regarding #ask > syntax (take these as questions about syntax, bug reports, or > feature requests, as appropriate). > > 1. In the old syntax one could specify alternate headers for inline > queries using <ask>[[Capital of::*|Cap]]</ask>. Is there a similar > syntax for #ask? If not, can it be added? Something like {{#ask > [[Capital of::*]] | ?Population|Pop }}.
Yes, the alternate header follows an equals sign '=' (and comes after any # specifying a desired custom unit or formatting). For example, | ?Population=Pop | ?Located in=deep in the heart of | ?Area#km²=Coverage This is now documented, http://semantic-mediawiki.org/wiki/Help:Semantic_search#Heading_label > 2. Not equal doesn't seem to work for Type::Page. I.e. > [[Population::100]] and [[Population::!100]] both work, but > [[Located in::Europe]] and [[Located in::!Europe]] both return a > list of things located in Europe. Yes, I believe none of the comparators (> < ! ~) work for properties of Type:Page (relations between pages) or for conditions on categories. They only work with what used to be called attributes. This and several other details of the various comparators are now at http://semantic-mediawiki.org/wiki/Help:Semantic_search#Comparators Thanks to Guy Heathcote and Markus for e-mailing explanations of {{#ask:}} that got me started. Folks, keep e-mailing any and all comments on the docs. -- =S Page ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel