[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: 2008-07-28 7:35:41
Message-ID: 1217230541.533087.14424.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 838559 by trueg:
less debugging output and no more deprecated Soprano API
M +6 -6 sopranoindexreader.cpp
M +3 -3 sopranoindexwriter.cpp
--- trunk/KDE/kdebase/runtime/nepomuk/strigibackend/sopranoindexreader.cpp \
#838558:838559 @@ -276,7 +276,7 @@
lucene::search::Query* q = createQuery( query );
::Soprano::QueryResultIterator hits = d->repository->executeQuery( TString( \
q->toString(), true ),
- \
::Soprano::Query::QUERY_LANGUAGE_USER, + \
::Soprano::Query::QueryLanguageUser,
\
QLatin1String( "lucene" ) ); // Iterator< ::Soprano::Index::QueryHit> hits = \
d->repository->index()->search( q ); int s = 0;
@@ -298,7 +298,7 @@
qDebug() << "IndexReader::getHits in thread" << QThread::currentThread();
lucene::search::Query* bq = createQuery( query );
::Soprano::QueryResultIterator hits = d->repository->executeQuery( TString( \
bq->toString(), true ),
- \
::Soprano::Query::QUERY_LANGUAGE_USER, + \
::Soprano::Query::QueryLanguageUser,
\
QLatin1String( "lucene" ) ); // Iterator< ::Soprano::Index::QueryHit> hits = \
d->repository->index()->search( bq );
@@ -349,7 +349,7 @@
vector<IndexedDocument> results;
lucene::search::Query* bq = createQuery( query );
::Soprano::QueryResultIterator hits = d->repository->executeQuery( TString( \
bq->toString(), true ),
- \
::Soprano::Query::QUERY_LANGUAGE_USER, + \
::Soprano::Query::QueryLanguageUser,
\
QLatin1String( "lucene" ) ); // Iterator< ::Soprano::Index::QueryHit> hits = \
d->repository->index()->search( bq );
@@ -392,7 +392,7 @@
// qDebug() << "running getChildren query:" << query;
- QueryResultIterator result = d->repository->executeQuery( query, \
::Soprano::Query::QUERY_LANGUAGE_SPARQL ); + QueryResultIterator result = \
d->repository->executeQuery( query, ::Soprano::Query::QueryLanguageSparql );
while ( result.next() ) {
Node pathNode = result.binding( "path" );
@@ -444,7 +444,7 @@
qDebug() << "mTime( " << uri.c_str() << ") query:" << query;
- QueryResultIterator it = d->repository->executeQuery( query, \
::Soprano::Query::QUERY_LANGUAGE_SPARQL ); + QueryResultIterator it = \
d->repository->executeQuery( query, ::Soprano::Query::QueryLanguageSparql );
time_t mtime = 0;
if ( it.next() ) {
@@ -469,7 +469,7 @@
// Our list of field names (the predicates) is probably awefully long.
std::vector<std::string> fields;
- QueryResultIterator it = d->repository->executeQuery( "select distinct ?p where \
{ ?r ?p ?o . }", ::Soprano::Query::QUERY_LANGUAGE_SPARQL ); + QueryResultIterator \
it = d->repository->executeQuery( "select distinct ?p where { ?r ?p ?o . }", \
::Soprano::Query::QueryLanguageSparql ); while ( it.next() ) {
fields.push_back( Util::fieldName( it.binding("p").uri() ) );
}
--- trunk/KDE/kdebase/runtime/nepomuk/strigibackend/sopranoindexwriter.cpp \
#838558:838559 @@ -209,14 +209,14 @@
.arg( path )
.arg( Vocabulary::XMLSchema::string().toString() );
- qDebug() << "deleteEntries query:" << query;
+// qDebug() << "deleteEntries query:" << query;
QueryResultIterator result = d->repository->executeQuery( query, \
::Soprano::Query::QUERY_LANGUAGE_SPARQL ); if ( result.next() ) {
Node indexGraph = result.binding( "g" );
result.close();
- qDebug() << "Found indexGraph to delete:" << indexGraph;
+// qDebug() << "Found indexGraph to delete:" << indexGraph;
// delete the indexed data
d->repository->removeContext( indexGraph );
@@ -275,7 +275,7 @@
data->context = Util::uniqueUri( "http://www.strigi.org/contexts/", \
d->repository ); }
- qDebug() << "Starting analysis for" << data->fileUri << "in thread" << \
QThread::currentThread(); +// qDebug() << "Starting analysis for" << data->fileUri \
<< "in thread" << QThread::currentThread();
idx->setWriterData( data );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic