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