[Nepomuk] Re: Metalink properties/elements to Nepomuk

Sebastian Trüg trueg at kde.org
Tue May 3 11:33:38 CEST 2011


If the logo is a remote file you may use a double-typed resource for the
image file: nfo:RemoteDataObject and nao:Symbol. Then link that remote
logo file to the downloaded file via nao:hasSymbol.

That is the best I can think of at the moment.

Cheers,
Sebastian

On 04/24/2011 05:31 PM, Matthias Fuchs wrote:
> Hi,
> 
> In the previous post "Using nfo:OperatingSystem" it was also about metalink. 
> But some further question arises.
> 
> There is the metlink::logo element which is associated to a metalink:file.
> The metalink:logo is basically just a uri to the logo. Now I'd be interested 
> how I should associate that to the file.
> 
> First I thought about using nco:logo, yet that is the logo of a company and 
> here it should be the logo of a file.
> 
> 
> So then I thought about using the following which seems right to me but is 
> complicated:
> 
> Nepomuk::File file(localFile);
> Nepomuk::Resource logoRes(logoUri, NFO:RemoteDataObject());
> Nepomuk::Resource logoImage(logoUri, NFO:Image());
> logoRes(NIE::interpretedAs(), logoImage);
> logoRes(NIE::isPartOf(), file);
> 
> Kinda long to me and not sure if it is right. Could you please give me a hint 
> how to do it? :)
> 
> matthias
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
> 


More information about the Nepomuk mailing list