Hi Benedikt,
One big problem that exists with trying to edit properties inline is that
there isn't always a direct relationship between property values and values
on the page. A property value can be the result of any sort of computation -
and even when there appears to be a 1:1 correspondence, it can be the result
of a tricky setup like:
{{#if:{{{field1|}} | [[myproperty::{{{field1|}}}]] |
[[myproperty::{{{field2|}}}]] }}
I don't know of any solution to this problem (figuring out which property
values are directly editable); and I'm not 100% sure that there is a
solution that will always work.
On the other hand, I believe there are at least two extensions that already
try to do something like this (though not via RDFa), so maybe your job is
easier: The first is SMWWriter:
http://semantic-mediawiki.org/wiki/Help:SMWWriter
The second is an extension that I saw demo'ed somewhere, I think written by
Vulcan, in which you can edit values via the SMW factbox. Although maybe
they just described it, and didn't actually demo it - I can't remember now.
-Yaron
On Thu, Feb 10, 2011 at 8:09 AM, Benedikt Kaempgen <
benedikt.kaemp...@kit.edu> wrote:
> Hello,
>
> I would like to add Inline Editing functionality to SMW, so that users can
> edit values of properties directly when clicking on them.
>
> One way to this would be to have some RDFa surrounding the annotations so
> that after a user has changed the embedded html, a script in the back would
> know from the RDFa which page and property to update.
>
> There is an RDFa extension, however, it does not embed the RDFa but only
> adds it to the beginning of the page, so that the html is not linked to the
> actual properties.
>
> I was looking to either hook into the annotation parsers ([[...::...]] and
> {{#ask...}}) or the query parsers (SMWAsk class) to add the RDFa to the
> wikitext/html output, but both times didn't find a suitable place to add
> the
> RDFa without editing SMW core.
>
> Any ideas and comments on this would be appreciated.
>
> Best,
>
> Benedikt
>
> --
> Karlsruhe Institute of Technology (KIT)
> Institute of Applied Informatics and Formal Description Methods (AIFB)
>
> Benedikt Kämpgen
> Research Associate
>
> Kaiserstraße 12
> Building 11.40
> 76131 Karlsruhe, Germany
>
> Phone: +49 721 608-47946 (!new since 1 January 2011!)
> Fax: +49 721 608-46580 (!new since 1 January 2011!)
> Email: benedikt.kaemp...@kit.edu
> Web: http://www.kit.edu/
>
> KIT – University of the State of Baden-Wuerttemberg and
> National Research Center of the Helmholtz Association
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>
>
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel