Nepomuk-Core
term.cpp
Go to the documentation of this file.
104 QList<Nepomuk2::Query::Term> subTerms = static_cast<const Nepomuk2::Query::GroupTerm&>( *this ).subTerms();
369 Nepomuk2::Query::Term Nepomuk2::Query::Term::fromProperty( const Nepomuk2::Types::Property& property, const Nepomuk2::Variant& variant )
450 Nepomuk2::Query::ComparisonTerm Nepomuk2::Query::operator<( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
456 Nepomuk2::Query::ComparisonTerm Nepomuk2::Query::operator>( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
462 Nepomuk2::Query::ComparisonTerm Nepomuk2::Query::operator<=( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
468 Nepomuk2::Query::ComparisonTerm Nepomuk2::Query::operator>=( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
474 Nepomuk2::Query::ComparisonTerm Nepomuk2::Query::operator==( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
480 Nepomuk2::Query::Term Nepomuk2::Query::operator!=( const Nepomuk2::Types::Property& property, const Nepomuk2::Query::Term& term )
527 template<> Nepomuk2::Query::TermPrivate* QSharedDataPointer<Nepomuk2::Query::TermPrivate>::clone()
A LiteralTerm sub-term is matched to smaller literal values.
Definition: comparisonterm.h:104
QString serializeTerm(const Term &term)
Definition: queryserializer.cpp:471
Nepomuk2::Resource resource() const
The resource this term should match against.
Definition: resourceterm.cpp:104
A negation term inverts the meaning of its sub term.
Definition: term.h:127
A LiteralTerm sub-term is matched to greater literal values.
Definition: comparisonterm.h:99
A LiteralTerm sub-term is matched to greater or equal literal values.
Definition: comparisonterm.h:109
Abstract base class for AndTerm and OrTerm which maintains a list of sub-terms.
Definition: groupterm.h:41
QDataStream & operator<<(QDataStream &, const Nepomuk2::SimpleResource &)
Definition: simpleresource.cpp:307
QList< Term > subTerms() const
The sub terms that are combined in this group.
Definition: groupterm.cpp:94
A sub-term is matched one-to-one.
Definition: comparisonterm.h:94
An optional term which marks its sub term as optional.
Definition: term.h:136
ComparisonTerm toComparisonTerm() const
Interpret this term as a ComparisonTerm.
Definition: term.cpp:266
QVariant userData(const QString &key) const
Get the user data associated with a key.
Definition: term.cpp:94
QList< Variant > toVariantList() const
Convert a Variant to a list of Variants.
Definition: variant.cpp:1173
The Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding...
Definition: variant.h:65
Query operator&&(const Query &query, const Term &term)
Logical and operator which combines term into the term of query to match both.
Definition: query.cpp:708
static Term fromVariant(const Variant &variant)
Construct a Term from a Variant value.
Definition: term.cpp:351
A LiteralTerm sub-term is matched to smaller or equal literal values.
Definition: comparisonterm.h:114
A term matching the value of a property.
Definition: comparisonterm.h:70
Match resource that match at least one of the sub terms.
Definition: orterm.h:43
ResourceTypeTerm toResourceTypeTerm() const
Interpret this term as a ResourceTypeTerm.
Definition: term.cpp:275
static Term fromString(const QString &s)
Parse a Term that has been encoded as a string via toString().
Definition: term.cpp:344
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: libnepomukcore/types/property.h:52
Query operator||(const Query &query, const Term &term)
Logical or operator which combines term into the term of query to match either one.
Definition: query.cpp:716
Comparator comparator() const
The Comparator used by ComparisonTerm Terms.
Definition: comparisonterm.cpp:460
void setUserData(const QString &key, const QVariant &value)
Store user data in the term.
Definition: term.cpp:89
void addSubTerm(const Term &term)
Add a sub term to the list of terms that are combined in this group.
Definition: groupterm.cpp:108
Query operator!(const Query &query)
Logical negation operator which negates the meaning of a query.
Definition: query.cpp:724
Match all resources that match one of the sub terms.
Definition: term.h:105
static Term fromProperty(const Types::Property &property, const Variant &variant)
Create a term using a Types::Property and a Variant.
Definition: term.cpp:369
Types::Property property() const
A property used for ComparisonTerm Terms.
Definition: comparisonterm.cpp:467
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:09 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:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.