Hi Dan,

thanks for you answers. I found out that this behaviour has been 
described before in
   Bug 28078 - Cannot query for category pages in a specific category
in March 2011 [1].

The query that you proposed:
   {{#ask: [[Subcategory of::+]] }}
correctly returns the list of all categories that are subcategories.
But when I extend the query to retrieve only the subcategories of a 
certain category,
then the query does not return any results.

Best regards,
Basil

[1] https://bugzilla.wikimedia.org/show_bug.cgi?id=28078


Am 29.08.2011 15:27, schrieb Dan Bolser:
> On 22 August 2011 08:18, Basil Ell<basil....@kit.edu>  wrote:
>> Hi,
>>
>> I am trying to query for the list of all subcategories of a given category,
>> but this does not return any results.
>>
>> I created a category C0
>> and two categories C0-0 and C0-1 with are annotated with [[Category:C0]].
>> When I browse their properties i see that they are "subcategory of" C0 -
>> seems to be alright.
>>
>> But neither this query
>>     {{#ask: [[Subcategory of::C0]] | format=table}}
> What happens if you try:  {{#ask: [[Subcategory of::+]] }} ?
>
>
>> or this query
>>     {{#ask:  [[:Category:+]] [[Subcategory of::C0]] | format=table}}
>> returns any result.
>>
>> What do I do wrong here?
>>
>> I am using MediaWiki 1.17alpha and Semantic MediaWiki (1.5.0.a-SVN).
>> $smwgQFeatures in SMW_Settings.php is set to SMW_PROPERTY_QUERY
>> | SMW_CATEGORY_QUERY | SMW_CONCEPT_QUERY | SMW_NAMESPACE_QUERY
>> | SMW_CONJUNCTION_QUERY | SMW_DISJUNCTION_QUERY;
>>
>> Best regards,
>> Basil
>>
>> ------------------------------------------------------------------------------
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing Subversion and
>> the tools developers use with it. Learn more about uberSVN and get a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>> _______________________________________________
>> Semediawiki-user mailing list
>> semediawiki-u...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>>
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> _______________________________________________
> Semediawiki-user mailing list
> semediawiki-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to