[Nepomuk] Some issues on current master

Sebastian Trüg sebastian at trueg.de
Thu May 31 08:34:45 UTC 2012


please see if this patch fixes the issue.

On 05/31/2012 10:24 AM, Marco Martin wrote:
> On Thursday 31 May 2012, Marco Martin wrote:
>> On Thursday 31 May 2012, Sebastian Trüg wrote:
>>> which version of virtuoso are you using?
>>>
>>> And, yes, the virtuoso branch needs to be merged in kdelibs indeed.
>>
>> i tried on 2 different systems with 6.1.2 and 6.1.4, now i'm trying to
>> install 6.1.5
> 
> with 6.1.5 apparently there is the same issue of parse error (syntax error at 
> exists)
> 
-------------- next part --------------
diff --git a/nepomuk/query/query.cpp b/nepomuk/query/query.cpp
index aca4fa4..13d07c99 100644
--- a/nepomuk/query/query.cpp
+++ b/nepomuk/query/query.cpp
@@ -455,7 +455,7 @@ QString Nepomuk::Query::Query::toSparqlQuery( SparqlFlags sparqlFlags ) const
     //
     QString userVisibilityRestriction;
     if( !(queryFlags()&NoResultRestrictions) && !d->m_isFileQuery ) {
-        userVisibilityRestriction = QString::fromLatin1("FILTER EXISTS { ?r a [ %1 %2 ] . } . ")
+        userVisibilityRestriction = QString::fromLatin1("FILTER(bif:exists((select (1) where { ?r a [ %1 %2 ] . }))) . ")
                                     .arg(Soprano::Node::resourceToN3(Soprano::Vocabulary::NAO::userVisible()),
                                          Soprano::Node::literalToN3(Soprano::LiteralValue(true)));
     }


More information about the Nepomuk mailing list