David C. Buchan wrote:
> Can anyone shed some light on why <ask> using categories is not working 
> the way I believe it should.

It works OK in SMW 0.7 and on ontoworld.org; semantic queries on parent 
category find members of its subcategories.

> I’m on MediaWiki 1.9.3 and have just patched via SVN the latest semantic 
> mediawiki.

Did you see Markus' message "SVN stability warning" of June 22nd?
Perhaps if you revert to 0.7 (I'm not sure what its tag is in SVN, you 
can download from Sourceforge, ) it'll work again.

In 0.7, if I enable debug output and log SQL[**] and then query a 
category in the Special:Ask page,
in the mediawiki debug log I see SMW_InlineQueries.php issuing /* 
SMW::SubCategory */ queries to assemble subcategories.  You could do the 
same and share what's in your log.

There are also settings in this file to control "expensive" features of 
inline queries such as $smwgIQSubcategoryInclusions, but the default in 
0.7 is to enable them.

> All help appreciated. It’s late and I’m going nuts.

[**] I added the following to my LocalSettings.php:

## === from http://meta.wikimedia.org/wiki/How_to_debug_MediaWiki ===
/**
  * The debug log file should be not be publicly accessible if it is 
used, as it
  * may contain private data. */
$wgDebugLogFile         = 'mediawiki_debug_log.txt';

#
# Profiling / debugging
#
# Override DefaultSettings.php
$wgShowSQLErrors = true;
## === from http://www.mediawiki.org/wiki/Manual:%24wgDebugDumpSql
$wgDebugDumpSql         = true;

--
=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

Reply via email to