On Thursday 31 May 2012, Sebastian Trüg wrote:
> 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)

ok, if i apply the attached patch to the nepomuk-core repository (besides the 
kdelibs one) all seems to work correctly again
tough further testing needed

the kdelibs merge, and those 2 patches applied should really happen asap 
before 4.9

Cheers,
Marco Martin
diff --git a/libnepomukcore/query/query.cpp b/libnepomukcore/query/query.cpp
index d67b6ce..862efe0 100644
--- a/libnepomukcore/query/query.cpp
+++ b/libnepomukcore/query/query.cpp
@@ -455,7 +455,7 @@ QString Nepomuk2::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)));
     }
_______________________________________________
Nepomuk mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/nepomuk

Reply via email to