Hi!

I'm trying add a fact to my wiki from the extension code. For example,
I want to add a fact that "User:Ganqqwerty eats onions". I'm trying to
construct SMWSemanticData object and store it in a store. The code
runs by a hook.

I have an ask-query that checks whether the new fact has been added.
Unfortunately, nothing happened when hook event occurs.

{{#ask:[[eats:+]]
format=broadtable
}}

Could somebody please clarify what I did wrong? The code (20 lines) is
in attachement.


-- 
Yury V. Katkov
Laboratory of intelligent systems
of the Saint-Petersburg National University of Information
Technologies, Mechanics and Optics, Russia
http://ailab.ifmo.ru

<<attachment: LittleSemanticExtension.php>>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to