Tag Class Reference
from PyKDE4.nepomuk import *
Inherits: Nepomuk.Resource
Namespace: Nepomuk.Tag
Detailed Description
\class Tag tag.h Nepomuk/Tag
A Tag can be assigned to any Thing. This allows simple grouping
of resources. Each Tag is identifed by its label which should
be unique.
- Author:
- Sebastian Trueg <trueg@kde.org>
Methods |
| __init__ (self) |
| __init__ (self, Nepomuk.ResourceManager manager) |
| __init__ (self, Nepomuk.Tag a0) |
| __init__ (self, Nepomuk.Resource a0) |
| __init__ (self, QString uriOrIdentifier) |
| __init__ (self, QString uriOrIdentifier, Nepomuk.ResourceManager manager) |
| __init__ (self, QUrl uri) |
| __init__ (self, QUrl uri, Nepomuk.ResourceManager manager) |
| __init__ (self, QString uri, QUrl type) |
| __init__ (self, QUrl uri, QUrl type) |
| __init__ (self, QString uri, QUrl type, Nepomuk.ResourceManager manager) |
| __init__ (self, QUrl uri, QUrl type, Nepomuk.ResourceManager manager) |
[Nepomuk.Tag] | allTags (self) |
QString | resourceTypeUri (self) |
[Nepomuk.Resource] | tagOf (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QString |
uriOrIdentifier |
|
) |
|
|
|
__init__ |
( |
self, |
|
|
|
QUrl |
uri |
|
) |
|
|
|
Retrieve a list of all available Tag resources. This list consists
of all resource of type Tag that are stored in the local Nepomuk
meta data storage and any changes made locally. Be aware that
in some cases this list can get very big. Then it might be better
to use libKNep directly.
- Returns:
- The URI of the resource type that is used in Tag instances.
Get all resources that have this resource set as property 'Tag'.
Each Resource can be tagged with an arbitrary number of Tags.
This allows a simple grouping of resources. \sa ResourceManager.allResourcesWithProperty