Nepomuk
comparisonterm.h
Go to the documentation of this file.
115 };
129 NoAggregateFunction = 0,
184 };
204 ComparisonTerm( const Types::Property& property, const Term& term, Comparator comparator = Contains );
int sortWeight() const
ComparisonTerm(const ComparisonTerm &term)
Copy constructor.
Comparator comparator() const
The Comparator used by ComparisonTerm Terms.
AggregateFunction aggregateFunction() const
The aggregate function to be used with the additional binding set in setVariableName().
@ Count
Count the number of matching results instead of returning the results themselves.
Definition: comparisonterm.h:137
bool isInverted() const
void setAggregateFunction(AggregateFunction function)
Set an aggregate function which changes the result.
Qt::SortOrder sortOrder() const
ComparisonTerm()
Default constructor: creates a comparison term that matches all properties.
ComparisonTerm inverted() const
Create an inverted copy of this ComparisonTerm.
void setSortWeight(int weight, Qt::SortOrder sortOrder=Qt::AscendingOrder)
Set the sort weight of this property.
ComparisonTerm(const Types::Property &property, const Term &term, Comparator comparator=Contains)
Convinience constructor which covers most simple use cases.
@ Sum
Return the sum of all result values instead of the results themselves.
Definition: comparisonterm.h:164
Abstract base class for NegationTerm and ComparisonTerm which maintains one sub-term.
Definition: simpleterm.h:42
@ DistinctCount
The same as Count except that no two similar results are counted twice.
Definition: comparisonterm.h:143
@ Smaller
A LiteralTerm sub-term is matched to smaller literal values.
Definition: comparisonterm.h:104
@ DistinctSum
The same as Sum except that no two similar results are added twice.
Definition: comparisonterm.h:170
QString variableName() const
The variable name set in setVariableName() or an empty string if none has been set.
@ Average
Return the average value of all results instead of the results themselves.
Definition: comparisonterm.h:177
AggregateFunction
Aggregate functions which can be applied to a comparison term to influence the value they return.
Definition: comparisonterm.h:125
ComparisonTerm & operator=(const ComparisonTerm &term)
Assignment operator.
void setVariableName(const QString &name)
Set the variable name that is to be used for the variable to match to.
@ Max
Return the maximum value of all results instead of the results themselves.
Definition: comparisonterm.h:150
Types::Property property() const
A property used for ComparisonTerm Terms.
@ GreaterOrEqual
A LiteralTerm sub-term is matched to greater or equal literal values.
Definition: comparisonterm.h:109
@ Regexp
A LiteralTerm sub-term is matched against a string literal value using the literal term's value as a ...
Definition: comparisonterm.h:89
@ Contains
A LiteralTerm sub-term is matched against string literal values.
Definition: comparisonterm.h:81
@ Greater
A LiteralTerm sub-term is matched to greater literal values.
Definition: comparisonterm.h:99
void setProperty(const Types::Property &)
Set the property for ComparisonTerm Terms.
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:53
A term matching the value of a property.
Definition: comparisonterm.h:71
@ Min
Return the minimum value of all results instead of the results themselves.
Definition: comparisonterm.h:157
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.