From kde-commits Fri Feb 25 08:51:48 2011 From: Sebastian Trueg Date: Fri, 25 Feb 2011 08:51:48 +0000 To: kde-commits Subject: playground/base/nepomuk-kde/annotation/plugins/webpage Message-Id: <20110225085148.DC85A3E1F1 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129862394210925 SVN commit 1222684 by trueg: Use pimo:isRelated instead of pimo:occurrence for web pages since that is easier to handle. M +2 -2 webpage.cpp --- trunk/playground/base/nepomuk-kde/annotation/plugins/webpage/webpage.cpp #1222683:1222684 @@ -85,8 +85,8 @@ kDebug() << "Creating annotation for url" << mtj->url(); SimplePimoAnnotation* anno = new SimplePimoAnnotation( this ); anno->setLabel( mtj->url().url() ); - anno->setComment( i18n( "Set web reference" ) ); - anno->setProperty( Vocabulary::PIMO::occurrence() ); + anno->setComment( i18n( "Related to web page '%1'", mtj->url().url()) ); + anno->setProperty( Vocabulary::PIMO::isRelated() ); anno->setValue( Variant( Resource( mtj->url(), Vocabulary::NFO::Website() ) ) ); addNewAnnotation( anno ); }