[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/nepomuk/query
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-08-27 16:50:40
Message-ID: 20100827165040.CA877AC857 () svn ! kde ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic