Term Class Reference
from PyKDE4.nepomuk import *
Subclasses: Nepomuk.Query.GroupTerm, Nepomuk.Query.LiteralTerm, Nepomuk.Query.ResourceTerm, Nepomuk.Query.ResourceTypeTerm, Nepomuk.Query.SimpleTerm
Namespace: Nepomuk.Query.Term
Detailed Description
\class Term term.h Nepomuk/Query/Term
The base class for all term types.
Queries are build from Term instances. A Term can have one of multiple types and subterms. See Term.Type for details on the different Term types.
- Since:
- 4.4
Method Documentation
| __init__ | ( | self ) |
\cond protected_error_members
| __init__ | ( | self, | ||
| Nepomuk.Query.Term | other | |||
| ) |
Copy constructor.
| __init__ | ( | self, | ||
| TermPrivate | a0 | |||
| ) |
\cond protected_error_members
| bool isAndTerm | ( | self ) |
- Returns:
- true if this term is an AndTerm.
| bool isComparisonTerm | ( | self ) |
- Returns:
- true if this term is a ComparisonTerm.
| bool isLiteralTerm | ( | self ) |
- Returns:
- true if this term is a LiteralTerm.
| bool isNegationTerm | ( | self ) |
- Returns:
- true if this term is a NegationTerm.
| bool isOrTerm | ( | self ) |
- Returns:
- true if this term is an OrTerm.
| bool isResourceTerm | ( | self ) |
- Returns:
- true if this term is a ResourceTerm.
| bool isResourceTypeTerm | ( | self ) |
- Returns:
- true if this term is a ResourceTypeTerm.
| bool isValid | ( | self ) |
- Returns:
- true if the term is valid. A valid term can be used to construct a Query.
| QDebug operator << | ( | self, | ||
| QDebug | a0 | |||
| ) |
| bool operator == | ( | self, | ||
| Nepomuk.Query.Term | term | |||
| ) |
Comparison operator.
- Returns:
- true if this term is equal to term.
| Nepomuk.Query.AndTerm toAndTerm | ( | self ) |
Convert this term into a AndTerm. If type is not And it will be changed and the result is a new AndTerm.
- Returns:
- A reference to this term as a AndTerm.
| Nepomuk.Query.AndTerm toAndTerm | ( | self ) |
Convert this term into a AndTerm. If type is not And it will be changed and the result is a new AndTerm.
- Returns:
- A reference to this term as a AndTerm.
| Nepomuk.Query.ComparisonTerm toComparisonTerm | ( | self ) |
Convert this term into a ComparisonTerm. If type is not Comparison it will be changed and the result is a new ComparisonTerm.
- Returns:
- A reference to this term as a ComparisonTerm.
| Nepomuk.Query.ComparisonTerm toComparisonTerm | ( | self ) |
Convert this term into a ComparisonTerm. If type is not Comparison it will be changed and the result is a new ComparisonTerm.
- Returns:
- A reference to this term as a ComparisonTerm.
| Nepomuk.Query.LiteralTerm toLiteralTerm | ( | self ) |
Convert this term into a LiteralTerm. If type is not Literal it will be changed and the result is a new LiteralTerm.
- Returns:
- A reference to this term as a LiteralTerm.
| Nepomuk.Query.LiteralTerm toLiteralTerm | ( | self ) |
Convert this term into a LiteralTerm. If type is not Literal it will be changed and the result is a new LiteralTerm.
- Returns:
- A reference to this term as a LiteralTerm.
| Nepomuk.Query.NegationTerm toNegationTerm | ( | self ) |
Convert this term into a NegationTerm. If type is not Negation it will be changed and the result is a new NegationTerm.
- Returns:
- A reference to this term as a NegationTerm.
| Nepomuk.Query.NegationTerm toNegationTerm | ( | self ) |
Convert this term into a NegationTerm. If type is not Negation it will be changed and the result is a new NegationTerm.
- Returns:
- A reference to this term as a NegationTerm.
| Nepomuk.Query.OrTerm toOrTerm | ( | self ) |
Convert this term into a OrTerm. If type is not Or it will be changed and the result is a new OrTerm.
- Returns:
- A reference to this term as a OrTerm.
| Nepomuk.Query.OrTerm toOrTerm | ( | self ) |
Convert this term into a OrTerm. If type is not Or it will be changed and the result is a new OrTerm.
- Returns:
- A reference to this term as a OrTerm.
| Nepomuk.Query.ResourceTerm toResourceTerm | ( | self ) |
Convert this term into a ResourceTerm. If type is not Resource it will be changed and the result is a new ResourceTerm.
- Returns:
- A reference to this term as a ResourceTerm.
| Nepomuk.Query.ResourceTerm toResourceTerm | ( | self ) |
Convert this term into a ResourceTerm. If type is not Resource it will be changed and the result is a new ResourceTerm.
- Returns:
- A reference to this term as a ResourceTerm.
| Nepomuk.Query.ResourceTypeTerm toResourceTypeTerm | ( | self ) |
Convert this term into a ResourceTypeTerm. If type is not ClassType it will be changed and the result is a new ResourceTypeTerm.
- Returns:
- A reference to this term as a ResourceTypeTerm.
| Nepomuk.Query.ResourceTypeTerm toResourceTypeTerm | ( | self ) |
Convert this term into a ResourceTypeTerm. If type is not ClassType it will be changed and the result is a new ResourceTypeTerm.
- Returns:
- A reference to this term as a ResourceTypeTerm.
| Nepomuk.Query.Term.Type type | ( | self ) |
- Returns:
- the Term type.
Enumeration Documentation
| Type |
The type of a term identifying its meaning.
\sa type()
- Enumerator:
-
Invalid Literal Resource And Or Comparison ResourceType Negation
KDE 4.4 PyKDE API Reference