Re: [SMW-devel] Problem with storing semantic attributes in a parserhook

2010-12-22 Thread zehetner
Hi, I used initially also the addProperty/storeData method and run into the same problem. But SMW updates its store and as no property declarations are on the page the stored properties get lost during the update. I therefore switched to using the SMWWriter extension to store property values

Re: [SMW-devel] Problem with storing semantic attributes in a parserhook

2010-12-22 Thread Laurent Alquier
Thanks for the reply. I still can't believe there isn't a more straightforward way to do this. Special properties such as Category and Last modified date are also not included in the page and yet, they manage to be updated on refresh and during jobs. The approach I am taking is to use a special

Re: [SMW-devel] Problem with storing semantic attributes in a parserhook

2010-12-22 Thread Laurent Alquier
I ended up hacking the SMWParseData::storeData method in addition to my extension in order to get it to work in both situations. The extension updates semantic annotations for authors of a page when a new page is saved. The hack of 'storeData' takes care of refresh Jobs. It looks like this is