[Nepomuk] Re: Correct usage of ontologies?

Matthias Fuchs mat69 at gmx.net
Tue Apr 5 22:17:27 CEST 2011


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! :)


More information about the Nepomuk mailing list