Thanks for your help Ignacio. The console command you provided returned:
Cannot find 'org.kde.nepomuk.DataManagementProperty' in object /datamanagement at org.kde.NepomukStorage Thanks again for your help, Andrew On Sun, Jun 10, 2012 at 1:54 AM, Ignacio Serantes <[email protected]> wrote: > Hi, > > And outdated SDO?. Try the next in console: > > qdbus org.kde.NepomukStorage /datamanagement > org.kde.nepomuk.DataManagementProperty "valid_uri" "nfo:depiction" > "valid_image" "shell" > > valid_uri -- must be a valid uri, you could use Nepoogle to obtain one. > valid_image -- a full path to an image file. > > I'm using this code to add covers to nmm:MusicAlbum and is working. > > On Sun, Jun 10, 2012 at 3:38 AM, Andrew Lake <[email protected]> wrote: >> >> Hello Ignacio, >> >> Thanks for catching my silly error. However, I tried with >> nfo:depiction and get the same issue. >> >> Thanks for any additional help, >> Andrew >> >> On Sat, Jun 9, 2012 at 1:42 PM, Ignacio Serantes <[email protected]> wrote: >> > Hi, >> > >> > There is no "nie:depiction", try with "nfo:depiction". >> > >> > On Sat, Jun 9, 2012 at 8:55 PM, Andrew Lake <[email protected]> >> > wrote: >> >> >> >> Ugh, I did a terrible job explaining that. >> >> >> >> So I have a resource (res) for which I would like to set the depiction >> >> to existing image resource. Here's the code snippet: >> >> >> >> --- code --- >> >> Nepomuk::Resource artworkRes(artworkUrl); >> >> if (!artworkRes.exists()) { >> >> artworkRes = Nepomuk::Resource(QUrl(artworkUrl), >> >> Nepomuk::Vocabulary::NFO::Image()); >> >> } >> >> >> >> >> >> res.setProperty(QUrl("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#depiction"), >> >> Nepomuk::Variant(artworkRes)); >> >> --- code --- >> >> >> >> I get the following two Nepomuk messages: >> >> >> >> Nepomuk::ResourceData::setProperty: "Cannot set values for abstract >> >> property >> >> 'http://www.semanticdesktop.org/ontologies/2007/01/19/nie#depiction'." >> >> >> >> Nepomuk::ResourceData::setProperty: "setProperty: No two resources can >> >> have the same nie:url at the same time." >> >> >> >> Of course the property is never set. Any ideas what I'm doing wrong? >> >> >> >> KDE v 4.8.2 >> >> SDO v 0.8.1 >> >> >> >> Thanks again, >> >> Andrew >> >> >> >> On Sat, Jun 9, 2012 at 10:58 AM, Andrew Lake <[email protected]> >> >> wrote: >> >> > Whenever I try to set the nie:depiction property on a resource object >> >> > - created via Nepomuk::Resource artworkRes(artworkUrlString) - I'm >> >> > getting the following Nepomuk message: >> >> > >> >> > Nepomuk::ResourceData::setProperty: "Cannot set values for abstract >> >> > property >> >> > >> >> > 'http://www.semanticdesktop.org/ontologies/2007/01/19/nie#depiction'." >> >> > >> >> > Additionally, even though resource object passes the >> >> > Resource::exists() check I'm getting: >> >> > >> >> > Nepomuk::ResourceData::setProperty: "setProperty: No two resources >> >> > can >> >> > have the same nie:url at the same time." >> >> > >> >> > KDE v 4.8.2 >> >> > SDO v 0.8.1 >> >> > >> >> > Any ideas? >> >> > Andrew >> >> _______________________________________________ >> >> Nepomuk mailing list >> >> [email protected] >> >> https://mail.kde.org/mailman/listinfo/nepomuk >> > >> > >> > >> > >> > -- >> > Best wishes, >> > Ignacio >> > >> > > > > > > -- > Best wishes, > Ignacio > > _______________________________________________ Nepomuk mailing list [email protected] https://mail.kde.org/mailman/listinfo/nepomuk
