• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Nepomuk

  • Nepomuk
  • Tag
Public Member Functions | Static Public Member Functions | Protected Member Functions

Nepomuk::Tag Class Reference

A Tag can be assigned to any Thing. More...

#include <Nepomuk/Tag>

Inheritance diagram for Nepomuk::Tag:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Tag ()
 Tag (ResourceManager *manager)
 Tag (const Resource &)
 Tag (const QUrl &uri, ResourceManager *manager)
 Tag (const QString &uriOrIdentifier)
 Tag (const QUrl &uri)
 Tag (const QString &uriOrIdentifier, ResourceManager *manager)
 Tag (const Tag &)
 ~Tag ()
Tag & operator= (const Tag &)
QList< Resource > tagOf () const

Static Public Member Functions

static QList< Tag > allTags ()
static QString resourceTypeUri ()

Protected Member Functions

 Tag (const QString &uri, const QUrl &type)
 Tag (const QUrl &uri, const QUrl &type, ResourceManager *manager)
 Tag (const QString &uri, const QUrl &type, ResourceManager *manager)
 Tag (const QUrl &uri, const QUrl &type)

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.

Author:
Sebastian Trueg <trueg@kde.org>

Definition at line 38 of file tag.h.


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:
managerThe 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:
managerThe 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:
managerThe resource manager to use. This allows to mix resources from different managers and, thus, different models.
Since:
4.3
Nepomuk::Tag::~Tag ( )

Destructor.

Nepomuk::Tag::Tag ( const QString &  uri,
const QUrl &  type 
) [protected]
Nepomuk::Tag::Tag ( const QUrl &  uri,
const QUrl &  type 
) [protected]
Nepomuk::Tag::Tag ( const QString &  uri,
const QUrl &  type,
ResourceManager *  manager 
) [protected]
Since:
4.3
Nepomuk::Tag::Tag ( const QUrl &  uri,
const QUrl &  type,
ResourceManager *  manager 
) [protected]
Since:
4.3

Member Function Documentation

static QList<Tag> Nepomuk::Tag::allTags ( ) [static]

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().

Tag& Nepomuk::Tag::operator= ( const Tag &  )
static QString Nepomuk::Tag::resourceTypeUri ( ) [static]
Returns:
The URI of the resource type that is used in Tag instances.
QList<Resource> Nepomuk::Tag::tagOf ( ) const

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.

See also:
ResourceManager::allResourcesWithProperty

The documentation for this class was generated from the following file:
  • tag.h

Nepomuk

Skip menu "Nepomuk"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal