[Nepomuk] Re: How to read back the Nepomuk::Resource identifier
chrigi_1 at fastmail.fm
Tue Feb 22 13:05:38 CET 2011
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());
res.identifiers() would return identifier, is that correct?
> 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
> > Nepomuk at kde.org
> > https://mail.kde.org/mailman/listinfo/nepomuk
> Nepomuk mailing list
> Nepomuk at kde.org
More information about the Nepomuk