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

List:       kde-commits
Subject:    KDE/kdebase/runtime/nepomuk/services/queryservice
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-05-31 19:11:07
Message-ID: 20100531191107.62595AC8C5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1132941 by trueg:

Make sure we never return ontology results - the brute-force way

 M  +5 -0      searchthread.cpp  


--- trunk/KDE/kdebase/runtime/nepomuk/services/queryservice/searchthread.cpp #1132940:1132941
@@ -128,6 +128,10 @@
 
         ++m_resultCnt;
 
+        Resource res( hits[0].uri() );
+        if ( !res.hasType( Soprano::Vocabulary::RDFS::Class() ) &&
+             !res.hasType( Soprano::Vocabulary::RDF::Property() ) &&
+             !res.hasType( Soprano::Vocabulary::NRL::Graph() ) ) {
         Result result = extractResult( hits );
         result.setScore( result.score() * baseScore );
 
@@ -136,6 +140,7 @@
         emit newResult( result );
     }
 }
+}
 
 
 namespace {
[prev in list] [next in list] [prev in thread] [next in thread] 

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