On 02/22/2011 01:05 PM, Christian Mollekopf wrote: > On Tuesday 22 February 2011 11:30:30 Sebastian Trüg wrote: >> That is weird indeed. >> Could you please do a kDebug() on the resource to see its details. > > What exactly would you like to see? (I can't just print the whole resource, > or can I?) > > the identifiers part is just empty, directly on creation, or also when loaded > later on. The uri is also first empty, and later on when loaded from storage > a > normal nepomuk:/ uri. > > I'd expect that when created like this: > > Nepomuk::Resource res(identifier, Nepomuk::Vocabulary::NFO::HtmlDocument());
is "identifier" a QString. Only then it would be used as identifier. Otherwise it would be used as nie:url I think... > res.identifiers() would return identifier, is that correct? > > >> >> Cheers, >> Sebastian >> >> On 02/17/2011 05:41 PM, Christian Mollekopf wrote: >>> another question =) >>> >>> So far I created Nepomuk::Resources for an Akonadi::Item using the the >>> url of the Akonadi::Item as identifier, which works well so far. >>> >>> But now that I tried getting the Akonadi::Item url back from the >>> corresponding Nepomu::Resource, I realized that neither the uri nor the >>> indetifiers contain the Akonadi::Item url which was used to create the >>> Resource. >>> >>> In other words, using the same url as identifier always gives me the same >>> Resource, but I can't get that url back from the Resource. Is that >>> normal? >>> >>> And how should I work around this? By Adding the url as additional >>> Identifier? >>> >>> 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 > _______________________________________________ > Nepomuk mailing list > [email protected] > https://mail.kde.org/mailman/listinfo/nepomuk > _______________________________________________ Nepomuk mailing list [email protected] https://mail.kde.org/mailman/listinfo/nepomuk
