Mike - the SMWWriter extension, in theory, does exactly what you're asking about - it can add, remove and modify property values in pages, whether they're stored via template calls or in free-form tags:


I don't know how well it works in practice.


On Tue, May 25, 2010 at 4:04 AM, Alfredas Chm <lafredas@ymail.com> wrote:

writing properties is not as straightforward. You basically need to append them to the page, but how would you specify where, also formating,etc. If you don't really care about the readability of the page, you can just extend the current api to by a function(name, value) that appends [[name::value]] to the page text.

But there is not standard solution.


From: Mike Travers <mt@alum.mit.edu>
To: semediawiki-devel@lists.sourceforge.net
Sent: Mon, May 24, 2010 11:19:35 PM
Subject: [SMW-devel] Write properties into wiki?

I'm trying to find a way to programmatically write properties into a SMW through an API, just as I can read out properties as RDF. I just want an API that takes a page, property, and value (or values) and stores it. There seems to be no convenient way to do this. Am I missing something?

Mike Travers


Semediawiki-devel mailing list

WikiWorks MediaWiki Consulting http://wikiworks.com