Ported the annotation to the new NAO ontology where it is called "comment" based on rdfs:comment.

svn path=/trunk/KDE/kdebase/apps/; revision=641172
This commit is contained in:
Sebastian Trueg 2007-03-10 11:21:00 +00:00
parent 188683aff3
commit e41ebdc528

View file

@ -55,7 +55,7 @@ QString MetadataLoader::getAnnotation(const KUrl& file)
{
#ifdef HAVE_KMETADATA
if(m_up)
return Nepomuk::KMetaData::File(file.url()).getAnnotation();
return Nepomuk::KMetaData::File(file.url()).getComment();
else
#endif
return QString();
@ -65,7 +65,7 @@ void MetadataLoader::setAnnotation(const KUrl& file, const QString& annotation)
{
#ifdef HAVE_KMETADATA
if(m_up)
Nepomuk::KMetaData::File(file.url()).setAnnotation(annotation);
Nepomuk::KMetaData::File(file.url()).setComment(annotation);
#endif
}