[Nepomuk] Nepomuk Core - Questions & Patches
Sebastian Trüg
trueg at kde.org
Thu May 27 13:59:26 CEST 2010
Hi Vishesh,
I finally looked at the remove-proxy patch again and fixed it. Now the
only problem left is the design weirdness of ResourceData instances
deleting themselves.
The main thing I did was removing all calls to determineUri from
ResourceData and moving them into Resource. I did the same with load()
and store() which is actually not necessary. Maybe it would be cleaner
to move those back...
I did not look into the merging of load and determineUri yet. I think we
should do that in a separate patch only after we cleaned this one up.
Otherwise it is impossible to debug.
Cheers,
Sebastian
On 05/26/2010 12:52 PM, Vishesh Handa wrote:
>
>
> On Wed, May 26, 2010 at 3:13 PM, Sebastian Trüg <trueg at kde.org
> <mailto:trueg at kde.org>> wrote:
>
> On 05/26/2010 10:08 AM, Vishesh Handa wrote:
> > > 3. When checking if the the m_kickoffUri is a nie:url for a
> resource.
> > > The nieUrl is assigned to be equal to the uri. This however
> gets fixed
> > > in the load(). And nieUrl isn't used anywhere, so it doesn't
> > matter that
> > > much.
> >
> > I suppose you mean this part:
> >
> > if( it.next() ) {
> > QUrl uri = it["r"].uri();
> > if( uri.isEmpty() ) {
> > m_uri = m_kickoffUri;
> > }
> > else {
> > m_uri = uri;
> > m_nieUrl = uri;
> > }
> >
> > The last two lines. AFAICT this is perfectly fine since in the
> latter
> > case both nie:url and resource URI are equal.
> >
> >
> > I respectfully disagree. :)
> >
> > The query used is this "select distinct ?r ?o where { { ?r nie:url
> <uri>
> > . } UNION { <uri> ?p ?o . } } LIMIT 1". The case where ?r isn't empty
> > is when the <uri> contains the nie:url and therefore ?r will
> contain the
> > resource uri.
>
> You are of course correct. It should be "m_nieUrl = m_kickoffUri"
> instead. Agreed?
>
>
> Yup. :)
>
> If you get the time could you please look at my horrible merge patch?
>
> Thanks
> - Vishesh Handa
>
> Cheers,
> Sebastian
>
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: removeProxyPatch5
Url: http://mail.kde.org/pipermail/nepomuk/attachments/20100527/7818f1b9/attachment-0001.bat
More information about the Nepomuk
mailing list