Hi Mike,

the DataAPI, which is part of the Halo extension might not be the 
perfect solution for your problem, because it relies on Semantic Forms, 
but maybe you want to have a look at it.

The DataAPi is integrated into MediaWiki's RESTful API. You can receive 
a special XML representation of an article, if a Semantic Form is 
defined for that article. The XML representation contains information 
about which form fields are defined in the corresponding Semantic Form 
and which values already have been provided for those form fields. You 
can then modify that XML representation and then write it back.

So if all your articles use Semantic Forms and if your Forms would 
contain a Form Field for adding additional properties, you could use the 
DataAPI.

It is described here:
http://smwforum.ontoprise.com/smwforum/index.php/Help:Methods_For_Accessing_Semantic_Forms

Ingo

Mike Travers schrieb:
> Thanks for the tip. I tried SMWWriter, and it seems to have a few problems:
> 
> - it introduced spurious \n s into any page it touched, causing much 
> havoc with templates
>     (this may be a OS compatibility issue, I'm running on a Mac)
> - it wouldn't rewrite a field in a template
> 
> Looks like it's not quite ready for prime-time, but it's a start. 
> 
> Mike
> 
> On Tue, May 25, 2010 at 9:53 AM, Yaron Koren <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     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:
> 
>     http://semantic-mediawiki.org/wiki/Help:SMWWriter
> 
>     I don't know how well it works in practice.
> 
>     -Yaron
> 
> 
>     On Tue, May 25, 2010 at 4:04 AM, Alfredas Chm <[email protected]
>     <mailto:[email protected]>> wrote:
> 
>         Hi,
> 
>         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.
> 
>         Alfredas
> 
>         *From:* Mike Travers <[email protected] <mailto:[email protected]>>
>         *To:* [email protected]
>         <mailto:[email protected]>
>         *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?
> 
>         Thanks,
>         Mike Travers
> 
> 
> 
> 
> 
>         
> ------------------------------------------------------------------------------
> 
> 
>         _______________________________________________
>         Semediawiki-devel mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
> 
> 
> 
> 
>     -- 
>     WikiWorks · MediaWiki Consulting · http://wikiworks.com
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Semediawiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


-- 
Ingo Steinbauer
Halo Team
ontoprise GmbH – know how to use Know-how
- - -
Halo Extension - Want to get involved?
http://smwforum.ontoprise.com/development
- - -
An der RaumFabrik 29; 76227 Karlsruhe; Germany
Tel.: +49 721 509809-48; Fax: +49 721 509809-11
email: [email protected], www: http://www.ontoprise.com
Registered Office: Karlsruhe, Germany, HRB 109540
Managing Directors: Prof. Dr. Jürgen Angele, Hans-Peter Schnurr

------------------------------------------------------------------------------

_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to