On Mittwoch, 30. Juli 2008, Jon Lang wrote: > You're not talking about special properties; you're talking about > meta-properties. In short, you seem to be asking that SMW be able to > reference special variables (such as PAGENAME) as if they were > properties.
This is something that we intend to enable *at some point* but we first need to extend/improve the internal architecture for managing special property values. Regarding the original request, however, there are two possible workarounds. SMW does not support negation, so you cannot exclude pages based on properties they do have. You can, however, exclude pages based on properties that they fail to have, and this may suffice: * If every person as a unique name, say {{{Full name}}}, then you can make a query {{#ask: [[Category:Person]] [[interest::{{{interest}}}]] [[full name::!{{{Full name}}}]] }} This finds only pages that have some full name is different from the name of the current person. Of course, if two people have the same name or if one person has two distinct names, then it would fail. A more secure method would be to have a "hidden" (non-special) property that always gets the value {{FULPAGENAME}}. This could be hidden in a template, and hence would emulate the special property that was suggested. There is a second option: * If the query results are very limited, you can use template-based formatting to filter out certain results. Using #ifeq you can always check if a result is equal to the current page name, and exclude it in this case. This is probably not a good idea for very long lists of results, but it gives you a lot of formatting power otherwise. Regards, Markus > > Am I understanding you correctly? -- Markus Krötzsch Semantic MediaWiki http://semantic-mediawiki.org http://korrekt.org [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel