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

List:       kde-commits
Subject:    KDE/kdebase/runtime/nepomuk/services/strigi
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-11-29 12:59:58
Message-ID: 20101129125958.2AD55AC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1202025 by trueg:

Make sure we do not delete EmbeddedFileDataObjects that do not have an URL

 M  +4 -2      indexscheduler.cpp  


--- trunk/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp \
#1202024:1202025 @@ -637,11 +637,13 @@
     // Remove data which is useless but still around from before. This could happen \
                due to some buggy version of
     // the indexer or the filewatch service or even some application messing up the \
                data.
     // We look for indexed files that do not have a nie:url defined and thus, will \
                never be catched by any of the
-    // other queries.
+    // other queries. In addition we check for an isPartOf relation since strigi \
produces EmbeddedFileDataObjects +    // for video and audio streams.
     //
     Query::Query q(
         Strigi::Ontology::indexGraphFor() == ( Soprano::Vocabulary::RDF::type() == \
                Query::ResourceTerm( Nepomuk::Vocabulary::NFO::FileDataObject() ) &&
-                                               !( Nepomuk::Vocabulary::NIE::url() == \
Query::Term() ) ) +                                               !( \
Nepomuk::Vocabulary::NIE::url() == Query::Term() ) && +                               \
!( Nepomuk::Vocabulary::NIE::isPartOf() == Query::Term() ) )  );
     q.setQueryFlags(Query::Query::NoResultRestrictions);
     query = q.toSparqlQuery();


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

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