[Nepomuk] Resource == Thing?
Christian Mollekopf
chrigi_1 at fastmail.fm
Thu Feb 17 19:29:11 CET 2011
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
More information about the Nepomuk
mailing list