From kde-commits Fri Aug 27 16:50:40 2010 From: Sebastian Trueg Date: Fri, 27 Aug 2010 16:50:40 +0000 To: kde-commits Subject: KDE/kdelibs/nepomuk/query Message-Id: <20100827165040.CA877AC857 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128292764602836 SVN commit 1168871 by trueg: Use a properly typed literal for the boolean so Soprano can easily replace it with its fake boolean type which we need due to Virtuoso not supporting xsd:boolean. M +3 -2 query.cpp --- trunk/KDE/kdelibs/nepomuk/query/query.cpp #1168870:1168871 @@ -505,9 +505,10 @@ // as those already restrict the type. QString userVisibilityRestriction; if( !d->m_isFileQuery && !(flags&NoResultRestrictions) ) { - userVisibilityRestriction = QString::fromLatin1( "?r a %1 . %1 %2 true . " ) + userVisibilityRestriction = QString::fromLatin1( "?r a %1 . %1 %2 %3 . " ) .arg( qbd.uniqueVarName(), - Soprano::Node::resourceToN3(Soprano::Vocabulary::NAO::userVisible()) ); + Soprano::Node::resourceToN3(Soprano::Vocabulary::NAO::userVisible()), + Soprano::Node::literalToN3(true) ); } // build the core of the query - the part that never changes