Nepomuk
#include <Nepomuk/Tag>
Static Public Member Functions | |
static QList< Tag > | allTags () |
static QString | resourceTypeUri () |
Static Public Member Functions inherited from Nepomuk::Resource | |
static QList< Resource > | allResources () |
static QString | altLabelUri () |
static QString | annotationUri () |
static QString | descriptionUri () |
static Resource | fromResourceUri (const KUrl &uri, const Nepomuk::Types::Class &type=Nepomuk::Types::Class(), ResourceManager *manager=0) |
static QString | identifierUri () |
static QString | isRelatedUri () |
static QString | isTopicOfUri () |
static QString | labelUri () |
static QString | ratingUri () |
static QString | symbolUri () |
static QString | tagUri () |
static QString | topicUri () |
Protected Member Functions | |
Tag (const QString &uri, const QUrl &type) | |
Tag (const QUrl &uri, const QUrl &type) | |
Tag (const QString &uri, const QUrl &type, ResourceManager *manager) | |
Tag (const QUrl &uri, const QUrl &type, ResourceManager *manager) | |
Detailed Description
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.
Constructor & Destructor Documentation
Nepomuk::Tag::Tag | ( | ) |
Create a new empty and invalid Tag instance.
Nepomuk::Tag::Tag | ( | ResourceManager * | manager | ) |
Create a new empty and invalid Tag instance.
- Parameters
-
manager The resource manager to use. This allows to mix resources from different managers and, thus, different models.
- Since
- 4.3
Nepomuk::Tag::Tag | ( | const Tag & | ) |
Default copy constructor.
Nepomuk::Tag::Tag | ( | const Resource & | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Nepomuk::Tag::Tag | ( | const QString & | uriOrIdentifier | ) |
Create a new Tag instance representing the resource referenced by uriOrIdentifier.
Nepomuk::Tag::Tag | ( | const QString & | uriOrIdentifier, |
ResourceManager * | manager | ||
) |
Create a new Tag instance representing the resource referenced by uriOrIdentifier.
- Parameters
-
manager The resource manager to use. This allows to mix resources from different managers and, thus, different models.
- Since
- 4.3
Nepomuk::Tag::Tag | ( | const QUrl & | uri | ) |
Create a new Tag instance representing the resource referenced by uri.
Nepomuk::Tag::Tag | ( | const QUrl & | uri, |
ResourceManager * | manager | ||
) |
Create a new Tag instance representing the resource referenced by uri.
- Parameters
-
manager The resource manager to use. This allows to mix resources from different managers and, thus, different models.
- Since
- 4.3
Nepomuk::Tag::~Tag | ( | ) |
Destructor.
|
protected |
- Since
- 4.3
|
protected |
- Since
- 4.3
Member Function Documentation
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.
In those cases it might be better to use the asyncronous approach via Query::QueryServiceClient and a Query::ResourceTypeTerm with type Soprano::Vocabulary::NAO::Tag().
|
static |
- Returns
- The URI of the resource type that is used in Tag instances.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.