<div style="margin-left: 40px;">>>There is no writeback service from nepomuk to akonadi yet (and also not<br>
>>in progress afaik) but ideally there would be. The writeback service<br>
>>would be responsible to sync back changes from nepomuk to akonadi. <br><br>Actually i worked on a writebackservice for my GSoC and there is a plugin for akonadi already implemented (you can find it in kde-runtime branch called gsoc2011/nepomuk/writeback) and it currently works perfectly for akonadi resources(i tested manually using dbus), if the resource watcher can emit the  signals (there were issues with it) and it should work fine. (we can also add calender events if its needed)<br>
</div><br><div class="gmail_quote">On Sat, Nov 12, 2011 at 2:25 AM, Christian Mollekopf <span dir="ltr"><<a href="mailto:chrigi_1@fastmail.fm">chrigi_1@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
On Thursday, November 10, 2011 9:54 AM, "Jörg Ehrichs"<br>
<div class="im"><<a href="mailto:Joerg.Ehrichs@gmx.de">Joerg.Ehrichs@gmx.de</a>> wrote:<br>
> Hi Christian,<br>
><br>
> thanks for the answer.<br>
><br>
> > [...] Unfortunately the Nepomuk::Resource api has not been ported to<br>
> > the DMS yet, but once this is done the resource will be automatically<br>
> > merged based on the nie:url property.<br>
><br>
> Means as long as I add the nie:url="akonadi:?item=1234" to my created<br>
> Resource the DMS part will merge<br>
> any new Resource created with this together?<br>
><br>
<br>
</div>Yes, the datastore service uses certain heuristics to decide if some<br>
resources are identical. The nie:url is used as such an identifying<br>
property.<br>
<div class="im"><br>
> Is the adoption of the Nepomuk::Resources api planed for 4.8?<br>
><br>
<br>
</div>AFAIK it has not been ported yet, so I guess it is too late. Sebastian?<br>
<div class="im"><br>
> > user generated content should usually go to the pimo:thing and not the<br>
> > akonadi resource directly, therefore the pimo:thing.<br>
><br>
> Currently all my authors and editors are created as nco:PersonContact<br>
> and what I want is a way to get from this resource<br>
> to the kaddressbook entry to offer a way to edit the resource in more<br>
> detail or if no akonadi entry exist, create one in a user selected<br>
> alonadi::collection and create the link between them.<br>
><br>
> Do I have to fiddle around with the pimo:thing/groundingOccurrence<br>
> stuff myself or is it still enough to create the nco:PersonContact<br>
> with the nie:url as described above and nepomuk does the magic behind the<br>
> scene?<br>
><br>
<br>
</div>The problem with using the Nepomuk::Resource API is that if the feeder<br>
already created the item, the Nepomuk:Resource api will produce a<br>
duplicate because there is no identification/merging.<br>
<br>
But since you want to edit the contact, you will have to do that with<br>
akonadi anyways, the feeder will then update the copy in Nepomuk. So,<br>
just search the contact in nepomuk, if it's there, get the uri. The rest<br>
you'll have to do in akonadi, the feeder will take care of<br>
creating/updating the copy in nepomuk.<br>
<br>
There is no writeback service from nepomuk to akonadi yet (and also not<br>
in progress afaik) but ideally there would be. The writeback service<br>
would be responsible to sync back changes from nepomuk to akonadi. Right<br>
now we only have the akonadi-nepomuk-feeder which does the sync the<br>
other way around. Just in case you care for the theory =)<br>
<div class="im"><br>
> > Note there is currently a bug in nepomuk which prevents the new feeders<br>
> > from working as expected.<br>
><br>
> Another good reason to wait for 4.8 and see how all the Nepomuk stuff<br>
> works then :)<br>
><br>
<br>
</div>I guess so, yes.<br>
<br>
Cheers,<br>
Christian<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</div></div></blockquote></div><br>