[SMW-devel] Upgrade to 1.8

2013-02-01 Thread Beebe, Mary J
We are currently at these versions: MediaWiki 1.15.3 Semantic MediaWiki 1.5.6 We would like to upgrade to the newest stable versions of both of these including the other Semantic extensions that we use. I was told that there were some major changes to the database structure with the newer

Re: [SMW-devel] Obtain data as simple array

2013-02-01 Thread s9gf4ult
--- $result = array(); $query = [[Title picutre::+]] [[Category: some category]] ?Title picture; $result = SF_Utils::getAllPagesForQuery( $query ); Very interesting, but doesnt work for me % php

Re: [SMW-devel] Obtain data as simple array

2013-02-01 Thread s9gf4ult
Yes, you use GET in this case. If you use API from your javascript No, I dont need to get data from javascript, I need to receive data with php on server side and generate the page, I hoped that I can do it with some Semantic API, but it is not so simple as I

Re: [SMW-devel] Obtain data as simple array

2013-02-01 Thread Yury Katkov
I'm not sure that it should work in a maintenance script. Also why do you think that the result shouldn't be empty in your case? Anyway, here how I figured this way - I've executed the query from Special:Ask and ran the debugger :) - Yury Katkov, WikiVote On Fri, Feb 1, 2013 at 4:51 PM,

Re: [SMW-devel] Upgrade to 1.8

2013-02-01 Thread Nischay Nahata
Hi, Yes, there have been some major changes to the database in SMW 1.8; at least the table names have changed. All the documentation can be found at [1] but I am afraid they aren't that complete. It is advised to not directly query with these tables and use SMW's abstraction to the extent

Re: [SMW-devel] Upgrade to 1.8

2013-02-01 Thread Yaron Koren
Hi, The only thing I would add to that is that it's possible to upgrade to SMW 1.8 while keeping the old database structure, by adding the following to LocalSettings.php: $smwgDefaultStore = 'SMWSQLStore2'; This isn't a good long-term solution, though, because support for SQLStore2 will