I noticed that this behaviour i normal if the resource type isn't a subclass 
of NIE:InformationElement,

On Thursday 17 February 2011 19:29:11 Christian Mollekopf wrote:
> It occured to me that I often get the Resource returned as pimoThing, is
> that normal?
> 
> The code looks like this:
> 
> Nepomuk::Resource res( item.url().url() ); //item is an akonadi item
> if (!res.identifiers().contains(item.url().url())) {
>       res.setIdentifiers(QStringList() << item.url().url());
> }
> 
> Nepomuk::Thing thing = res.pimoThing();
> if (thing == res) {
>         kWarning() << "thing == res";
> }
> 
> Cheers,
> 
> Chris
> _______________________________________________
> Nepomuk mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/nepomuk
_______________________________________________
Nepomuk mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/nepomuk

Reply via email to