[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nepomuk
Subject:    Re: [Nepomuk] porting stuff to Nepomuk2
From:       Vishesh Handa <me () vhanda ! in>
Date:       2012-07-11 13:57:26
Message-ID: CAOPTMKAAy4fHO6q=JKkFuQ+dNCEzics0t+50c-U+fD+W7M+Dwg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Jul 10, 2012 at 3:25 PM, Marco Martin <notmart@gmail.com> wrote:

> Yo all,
> I tried to port some stuff to Nepomuk2, namely kactivities and
> plasma-mobile
>
> porting kactivities went smooth, and is now in the branch mart/nepomuk2 of
> the
> kactivities repository.
> the only thing still to fix is that is exposing a Nepomuk::Resource in a
> method, so it will have to provide both that and a new one with a
> Nepomuk2::Resource
>

Why both? Can't everyone just use Nepomuk2::Resource?

>
> for plasma-mobile (mart/nepomuk2 branch on the plasma-mobile git repo) is a
> bit more tricky:
> it needs nepomuk_add_ontology_classes that is still generating code with
> Nepomuk:: namespace.
> this will be a problem for a lot of code to port i guess
>
> I did a mart/rcgenNepomuk2 branch on the nepomuk-core repo.
> this builds that copy of rcgen with the name nepomuk2-rcgen and generates
> code
> with Nepomuk2:: namespace (a bit of generated code is disabled because it
> was
> using old functions from ResourceManager that are removed and were very
> slow)
>

Makes sense

>
> i tought at start to make the namespace command line dependent but the
> result
> vas an ugly bunch of spaghetti and the kdelibs copy would have to be
> modified
> (not good)
>
> it also needs an updated cmake file NepomukAddOntologyClasses (attached),
> which adds the NEPOMUK2 option and in that case uses nepomuk2-rcgen. all
> should be retrocompatible,
>
> Vishesh: what's the best way to proceed now?
>

I think for now it would make sense to push your
NepomukAddOntologyClasses.cmake in that branch, and then we can merge it
into master. I don't want this going into 4.9 cause there are some problems
with the current rcgen which I would like to fix at some point.

Btw, I don't really understand the NepomukAddOntologyClasses.cmake, so I
hope it works :)


> Cheers,
> Marco Martin
>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk@kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
>


-- 
Vishesh Handa

[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 3:25 PM, Marco Martin <span \
dir="ltr">&lt;<a href="mailto:notmart@gmail.com" \
target="_blank">notmart@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

Yo all,<br>
I tried to port some stuff to Nepomuk2, namely kactivities and plasma-mobile<br>
<br>
porting kactivities went smooth, and is now in the branch mart/nepomuk2 of the<br>
kactivities repository.<br>
the only thing still to fix is that is exposing a Nepomuk::Resource in a<br>
method, so it will have to provide both that and a new one with a<br>
Nepomuk2::Resource<br></blockquote><div><br>Why both? Can&#39;t everyone just use \
Nepomuk2::Resource?<br></div><blockquote class="gmail_quote" style="margin:0px 0px \
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
for plasma-mobile (mart/nepomuk2 branch on the plasma-mobile git repo) is a<br>
bit more tricky:<br>
it needs nepomuk_add_ontology_classes that is still generating code with<br>
Nepomuk:: namespace.<br>
this will be a problem for a lot of code to port i guess<br>
<br>
I did a mart/rcgenNepomuk2 branch on the nepomuk-core repo.<br>
this builds that copy of rcgen with the name nepomuk2-rcgen and generates code<br>
with Nepomuk2:: namespace (a bit of generated code is disabled because it was<br>
using old functions from ResourceManager that are removed and were very \
slow)<br></blockquote><div><br>Makes sense <br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

<br>
i tought at start to make the namespace command line dependent but the result<br>
vas an ugly bunch of spaghetti and the kdelibs copy would have to be modified<br>
(not good)<br>
<br>
it also needs an updated cmake file NepomukAddOntologyClasses (attached),<br>
which adds the NEPOMUK2 option and in that case uses nepomuk2-rcgen. all<br>
should be retrocompatible,<br>
<br>
Vishesh: what&#39;s the best way to proceed now?<br></blockquote><div><br>I think for \
now it would make sense to push your NepomukAddOntologyClasses.cmake in that branch, \
and then we can merge it into master. I don&#39;t want this going into 4.9 cause \
there are some problems with the current rcgen which I would like to fix at some \
point.<br> <br>Btw, I don&#39;t really understand the \
NepomukAddOntologyClasses.cmake, so I hope it works :)<br><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

<br>
Cheers,<br>
Marco Martin<br>
<br>_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org" target="_blank">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> \
<br></blockquote></div><br><br clear="all"><br>-- <br><span \
style="color:rgb(192,192,192)">Vishesh Handa</span><br><br>



_______________________________________________
Nepomuk mailing list
Nepomuk@kde.org
https://mail.kde.org/mailman/listinfo/nepomuk


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic