[Nepomuk] Re: Correct usage of ontologies?

Sebastian Trüg trueg at kde.org
Wed Apr 6 14:25:03 CEST 2011


On 04/05/2011 11:44 PM, Matthias Fuchs wrote:
> And the part that the referer does not get listed, or that I am too dump -- 
> would not wonder me :D -- to find it?

Hm, it should get listed in Dolphin... at least there is code to do that. :P
More for me to look into.

> Btw. do you think that I should also set the comic tag on the images?
> I mean it is really redundant (as they are the subject anyway) and the only 
> reason I should set it is that the tools to display the information do not 
> work with that yet.
> At first I thought setting that is a good idea, but now I think that would 
> only dump useless data into the database.

I am really not sure myself...

> I hope I am not stealing too much of your precious time with these questions, 
> of which some look kinda stupid to me after a closer investigation.^^

Not at all. Using Nepomuk is far from being obvious... sadly. :)

> Cheers,
> matthias
> 
> Am Dienstag 05 April 2011, 23:26:28 schrieb Sebastian Trüg:
>> the "unknown protocol" seems to be a bug which is not related to your
>> code. I will try to fix that tomorrow.
>>
>> On 04/05/2011 10:17 PM, Matthias Fuchs wrote:
>>> Am Dienstag 05 April 2011, 19:23:37 schrieb Sebastian Trüg:
>>>> On 04/05/2011 05:10 PM, Matthias Fuchs wrote:
>>>>> Am Montag 04 April 2011, 18:26:39 schrieb Sebastian Trüg:
>>>>>> On 04/04/2011 05:34 PM, Matthias Fuchs wrote:
>>>>>>> Am Montag 04 April 2011, 15:38:39 schrieb Sebastian Trüg:
>>>>>>>     res.setProperty(NDO::referrer(), website);
>>>>>>
>>>>>> Hm, this is not correct as the domain of ndo:referrer is
>>>>>> ndo:DownloadEvent. You could either create a download event through
>>>>>> Nepomuk::Utils::createCopyEvent[1] or simply use nao:isRelated which
>>>>>> might be simpler but is less correct.
>>>>>
>>>>> Thank you very much for all the answers! :)
>>>>>
>>>>> Unfortunately I don't have the src-url, and also not the download start
>>>>> and the download end. Maybe I could modify the data-engine code, to at
>>>>> least have a direct link to the source. Though sometimes there is none,
>>>>> as comic plugins can combine images.
>>>>>
>>>>> So would
>>>>>
>>>>> Nepomuk::Resource copyEvent = Nepomuk::Utils::createCopyEvent(destUrl,
>>>>> KUrl(), QDateTime(), mWebsiteUrl);
>>>>
>>>> The dest and src need to be exchanged.
>>>
>>> Damn, I am really unconcentraded lately. :D
>>>
>>>> And I just checked the code.
>>>> Empty URLs are not properly supported and will result in bogus data. :(
>>>
>>> Ok, I just changed the code so that I get the url which was used to
>>> download the image. If multiple images were combined into one, then only
>>> one of those image-links will be used.
>>>
>>> Now when I click on the "Copied From" link in Dolphin it will display
>>> that it does not know the protocol.
>>> That is why I looked at the Resource via the nepomukshell [1] and here I
>>> see the url yet I wondered when I did _not_ find the referer url.
>>>
>>> This is what I am using:
>>> Nepomuk::Resource copyEvent = Nepomuk::Utils::createCopyEvent(mImageUrl,
>>> destUrl, QDateTime(), mWebsiteUrl);
>>>
>>> Cheers,
>>> matthias
>>>
>>> [1] Completely forgot about it by now only stumbled over it again because
>>> of your blog entry. Great tool that is! :)
>>> _______________________________________________
>>> Nepomuk mailing list
>>> Nepomuk at kde.org
>>> https://mail.kde.org/mailman/listinfo/nepomuk
>>
>> _______________________________________________
>> Nepomuk mailing list
>> Nepomuk at kde.org
>> https://mail.kde.org/mailman/listinfo/nepomuk
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
> 


More information about the Nepomuk mailing list