Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Jeroen De Dauw
Hey, > Semantic Watchlist operates with the data that has been already stored in the database, right? No, it uses the SMWStore::updateDataBefore hook, which gets fired in SMWStore::updateData. So you can use this hook together with one that allows modifying the user (assuming there is one that ge

Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Yury Katkov
Hi Jeroen! Semantic Watchlist operates with the data that has been already stored in the database, right? What I need is to make some things before the new text become stored. Here is my use case: 1. Suppose we have a wiki for brainstorming. Each article represents an idea. The brainstorming sess

Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Jeroen De Dauw
Hey, > Probably I do. I want to know whether or not the user will change the property befor the text is stored in the database. Sorry, that makes no sense to me. If you want to know the property value changes, what you need is exactly the hooks providing diffs I mentioned. Why would you need asso

Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Yury Katkov
> Do you need the association between property and source text? Probably I do. I want to know whether or not the user will change the property befor the text is stored in the database. > I don't know exactly how SMW works, but it should be possible to parse again the article text and collect the se

Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Niklas Laxström
On 25 July 2012 03:33, Yury Katkov wrote: > > So here is my question: is it possible to figure out the properties before > the text is actually stored in the database? I don't know exactly how SMW works, but it should be possible to parse again the article text and collect the semantic annotation

Re: [SMW-devel] figuring out what semantic properties will be in the text

2012-07-25 Thread Jeroen De Dauw
Hey, Do you need the association between property and source text? If not, you can use a hook provided by the Semantic Watchlist extension, or wait for us to have a similar one in SMW (which nischay is currently working on). These hooks (will) provide a diff between old and new data on the page, t

[SMW-devel] figuring out what semantic properties will be in the text

2012-07-24 Thread Yury Katkov
Hi everyone! Suppose I'm developing the extension that runs on ArticleSave hook [1]. Using $text variable I can look at the text that user have just inserted. I want to know, if the page will have new properties after article save. For example, I see that the user inserted this text: "here is the