[Nepomuk] Re: Resource == Thing?
Christian Mollekopf
chrigi_1 at fastmail.fm
Fri Feb 18 22:19:04 CET 2011
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
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
More information about the Nepomuk
mailing list