Nepomuk.Query.OrTerm

KDE 4.7 PyKDE API Reference

- KDE's Python API

# OrTerm Class Reference

`from PyKDE4.nepomuk import *`

Inherits: Nepomuk.Query.GroupTerm → Nepomuk.Query.Term
Namespace: Nepomuk.Query

## Detailed Description

\class OrTerm orterm.h Nepomuk/Query/OrTerm

Match resource that match at least one of the sub terms.

This class - like AndTerm - is derived from GroupTerm which handles the sub terms.

Author:
  Sebastian Trueg <trueg@kde.org>

Since:
  4.4

## Methods
| __init__ (self)
| __init__ (self, Nepomuk.Query.OrTerm term)
| __init__ (self, Nepomuk.Query.Term term1, Nepomuk.Query.Term term2, Nepomuk.Query.Term term3=Nepomuk.Query.Term(), Nepomuk.Query.Term term4=Nepomuk.Query.Term(), Nepomuk.Query.Term term5=Nepomuk.Query.Term(), Nepomuk.Query.Term term6=Nepomuk.Query.Term())
| __init__ (self, [Nepomuk.Query.Term] terms)

## Method Documentation

__init__ | ( |  | self ) |

Default constructor: creates an invalid or-term.

__init__ | ( | self, |
|  | Nepomuk.Query.OrTerm | term
| ) |  |  |

Copy constructor.

__init__ | ( | self, |
|  | Nepomuk.Query.Term | term1,
|  | Nepomuk.Query.Term | term2,
|  | Nepomuk.Query.Term | term3=Nepomuk.Query.Term(),
|  | Nepomuk.Query.Term | term4=Nepomuk.Query.Term(),
|  | Nepomuk.Query.Term | term5=Nepomuk.Query.Term(),
|  | Nepomuk.Query.Term | term6=Nepomuk.Query.Term()
| ) |  |  |

Convinience constructor which allows to combine several terms in one line.

__init__ | ( | self, |
|  | [Nepomuk.Query.Term] | terms
| ) |  |  |

Combine terms into one and-term.