[SMW-devel] ASK Query for added Special Properties

2013-11-07 Thread sumit purohit
Hi All,

I was using SMW 1.5 ( with MW 1.15.6)  and added my own special property
mimetype using smwInitProperties. All the pages with this property were
returned when i used ask query against them

{{#ask: [[mimetype::image/jpeg]] OR [[mimetype::image/bmp }}


But recently i upgraded to SMW 1.8 with MW 1.21.2 and this query has
stopped working. I am not sure how to debug this issue as i find SQL log a
bit complex to compare between versions.

with SMW 1.5 i was using SQLStore2 and now with SMW1.8 i am using
SQLStore3. I followed instructions to migrate from SQLStore2 to SQLStore3
without any error.

Any suggestion to debug this scenario  Is it supposed to work in
current version ?

Thanks
Sumit
--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] ASK Query for added Special Properties

2013-11-07 Thread sumit purohit
Thanks

1. ]] is there in the actual query.
2. i followed
http://semantic-mediawiki.org/wiki/Help:Installation#Upgrading_existing_installations
and ran following commands.


php SMW_setup.php -b SMWSQLStore3

php SMW_refreshData.php -v -b SMWSQLStore3 -fp

php SMW_refreshData.php -v -b SMWSQLStore3


My *Special:Properties* page does list it as a property. Actual line i
have on that page is :


*mimetype of type Page(7 uses)*


Am i missing anything here ?


Thanks

sumit








On Thu, Nov 7, 2013 at 12:20 PM, Jeroen De Dauw jeroended...@gmail.comwrote:

 Hey,

 Yes, this query is supposed to work on the current version, at least if
 you add the closing ]].

 Are you sure you ran both the schema update and data refresh scripts?

 Cheers

 --
 Jeroen De Dauw
 http://www.bn2vs.com
 Don't panic. Don't be evil. ~=[,,_,,]:3
 --

--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] ASK Query for added Special Properties

2013-11-07 Thread sumit purohit
I changed it back to SQLStore2 in LocalSettings.php and i do see some
results.

Special:Properties list 199 properties when SQLStore2 is used where as only
73 when SQLStore3 is used.
I did not see any error while migrating, but will give it a 2nd try.





On Thu, Nov 7, 2013 at 12:48 PM, sumit purohit purohitsu...@gmail.comwrote:

 Thanks

 1. ]] is there in the actual query.
 2. i followed
 http://semantic-mediawiki.org/wiki/Help:Installation#Upgrading_existing_installations
 and ran following commands.


 php SMW_setup.php -b SMWSQLStore3

 php SMW_refreshData.php -v -b SMWSQLStore3 -fp

 php SMW_refreshData.php -v -b SMWSQLStore3


 My *Special:Properties* page does list it as a property. Actual line i have 
 on that page is :


 *mimetype of type Page(7 uses)*


 Am i missing anything here ?


 Thanks

 sumit








 On Thu, Nov 7, 2013 at 12:20 PM, Jeroen De Dauw jeroended...@gmail.comwrote:

 Hey,

 Yes, this query is supposed to work on the current version, at least if
 you add the closing ]].

 Are you sure you ran both the schema update and data refresh scripts?

 Cheers

 --
 Jeroen De Dauw
 http://www.bn2vs.com
 Don't panic. Don't be evil. ~=[,,_,,]:3
 --



--
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231iu=/4140/ostg.clktrk___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel