[Nepomuk] Nepomuk Core - Questions & Patches

Vishesh Handa handa.vish at gmail.com
Wed May 26 12:52:26 CEST 2010


On Wed, May 26, 2010 at 3:13 PM, Sebastian Trüg <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 HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20100526/50ac31e4/attachment.htm 


More information about the Nepomuk mailing list