Nepomuk-Core
literalterm.cpp
Go to the documentation of this file.
49 // A LiteralTerm not used in a ComparisonTerm is a "classical" plain text search term. That would mean "?r ?p ?v . ?v bif:contains 'foobar' . "
50 // But since many relations like nao:hasTag or nmm:performer or similar are considered as plain text fields we extend the pattern by adding
53 QString Nepomuk2::Query::LiteralTermPrivate::toSparqlGraphPattern( const QString& resourceVarName, const TermPrivate* parentTerm, const QString &additionalFilters, QueryBuilderData *qbd ) const
78 // BUG: 3591024 - https://sourceforge.net/tracker/?func=detail&aid=3591024&group_id=161622&atid=820574
94 QString Nepomuk2::Query::LiteralTermPrivate::createContainsPattern( const QString& varName, const QString& text, Nepomuk2::Query::QueryBuilderData* qbd )
133 // Handle the three special tokens supported in Virtuoso's full text search engine we support (there is also "near" which we do not handle yet)
148 // Virtuoso needs four leading chars when using wildcards. Thus, if there is less (this includes 0) we fall back to the slower regex filter
193 const QString finalContainsToken = containsFilterTokens.join( isUnion ? QLatin1String(" OR ") : QLatin1String(" AND "));
223 // The fallback is to add bif:contains as a filter. This syntax does not support scoring though.
231 filterPattern = QString( QLatin1String("FILTER(") + filters.join( isUnion ? QLatin1String(" || ") : QLatin1String(" && ") ) + QLatin1String(") . ") );
255 Nepomuk2::Query::LiteralTerm& Nepomuk2::Query::LiteralTerm::operator=( const LiteralTerm& term )
void setValue(const Soprano::LiteralValue &value)
Set the value this LiteralTerm should match to.
Definition: literalterm.cpp:269
LiteralTerm & operator=(const LiteralTerm &term)
Assignment operator.
Definition: literalterm.cpp:255
Soprano::LiteralValue value() const
The value this LiteralTerm should match to.
Definition: literalterm.cpp:262
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.