[Nepomuk] Nepomuk Core - Questions & Patches

Sebastian Trüg trueg at kde.org
Wed May 26 11:43:48 CEST 2010


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?

Cheers,
Sebastian


More information about the Nepomuk mailing list