[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/nepomuk/strigibackend
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2009-12-09 12:59:16
Message-ID: 1260363556.564141.17080.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1060640 by trueg:

Folders are file data objects, too.

 M  +4 -6      sopranoindexwriter.cpp  


--- trunk/KDE/kdebase/runtime/nepomuk/strigibackend/sopranoindexwriter.cpp \
#1060639:1060640 @@ -191,18 +191,16 @@
 
         // Strigi only indexes files and extractors mostly (if at all) store the \
                nie:DataObject type (i.e. the contents)
         // Thus, here we go the easy way and mark each indexed file as a \
nfo:FileDataObject. +        model->addStatement( resourceUri,
+                             Vocabulary::RDF::type(),
+                             Nepomuk::Vocabulary::NFO::FileDataObject(),
+                             context );
         if ( fileInfo.isDir() ) {
             model->addStatement( resourceUri,
                                  Vocabulary::RDF::type(),
                                  Nepomuk::Vocabulary::NFO::Folder(),
                                  context );
         }
-        else {
-            model->addStatement( resourceUri,
-                                 Vocabulary::RDF::type(),
-                                 Nepomuk::Vocabulary::NFO::FileDataObject(),
-                                 context );
-        }
 
 
         // create the provedance data for the data graph


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic