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

Nepomuk

  • Nepomuk
  • Tag
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Nepomuk::Tag Class Reference

#include <Nepomuk/Tag>

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

Public Member Functions

 Tag ()
 
 Tag (ResourceManager *manager)
 
 Tag (const Tag &)
 
 Tag (const Resource &)
 
 Tag (const QString &uriOrIdentifier)
 
 Tag (const QString &uriOrIdentifier, ResourceManager *manager)
 
 Tag (const QUrl &uri)
 
 Tag (const QUrl &uri, ResourceManager *manager)
 
 ~Tag ()
 
Tag & operator= (const Tag &)
 
QList< Resource > tagOf () const
 
- Public Member Functions inherited from Nepomuk::Resource
 Resource ()
 
 Resource (ResourceManager *manager)
 
 Resource (const Resource &)
 
 Resource (const QString &pathOrIdentifier, const QUrl &type=QUrl())
 
 Resource (const QString &pathOrIdentifier, const QUrl &type, ResourceManager *manager)
 
 Resource (const QString &pathOrIdentifier, const QString &type)
 
 Resource (const QUrl &uri, const QUrl &type=QUrl())
 
 Resource (const QUrl &uri, const QUrl &type, ResourceManager *manager)
 
 Resource (ResourceData *)
 
virtual ~Resource ()
 
void addAltLabel (const QString &value)
 
void addAnnotation (const Resource &value)
 
void addIdentifier (const QString &value)
 
void addIsRelated (const Resource &value)
 
void addIsTopicOf (const Resource &value)
 
void addProperty (const QUrl &uri, const Variant &value)
 
void addSymbol (const QString &value)
 
void addTag (const Tag &value)
 
void addTopic (const Resource &value)
 
void addType (const QUrl &type)
 
QHash< QString, Variant > allProperties () const
 
QStringList altLabels () const
 
QList< Resource > annotationOf () const
 
QList< Resource > annotations () const
 
QString className () const
 
QString description () const
 
bool exists () const
 
QString genericDescription () const
 
QString genericIcon () const
 
QString genericLabel () const
 
bool hasProperty (const QUrl &uri) const
 
bool hasProperty (const Types::Property &p, const Variant &v) const
 
bool hasProperty (const QString &uri) const
 
bool hasType (const QUrl &typeUri) const
 
QStringList identifiers () const
 
void increaseUsageCount ()
 
bool isFile () const
 
QList< Resource > isRelatedOf () const
 
QList< Resource > isRelateds () const
 
QList< Resource > isTopicOfs () const
 
bool isValid () const
 
QString label () const
 
ResourceManager * manager () const
 
bool operator!= (const Resource &) const
 
Resource & operator= (const Resource &other)
 
Resource & operator= (const QUrl &uri)
 
bool operator== (const Resource &) const
 
Thing pimoThing ()
 
QHash< QUrl, Variant > properties () const
 
Variant property (const QUrl &uri) const
 
Variant property (const QString &uri) const
 
quint32 rating () const
 
void remove ()
 
void removeProperty (const QUrl &uri)
 
void removeProperty (const QUrl &uri, const Variant &value)
 
void removeProperty (const QString &uri)
 
QUrl resourceType () const
 
QUrl resourceUri () const
 
void setAltLabels (const QStringList &value)
 
void setAnnotations (const QList< Resource > &value)
 
void setDescription (const QString &value)
 
void setIdentifiers (const QStringList &value)
 
void setIsRelateds (const QList< Resource > &value)
 
void setIsTopicOfs (const QList< Resource > &value)
 
void setLabel (const QString &value)
 
void setProperty (const QUrl &uri, const Variant &value)
 
void setProperty (const QString &uri, const Variant &value)
 
void setRating (const quint32 &value)
 
void setSymbols (const QStringList &value)
 
void setTags (const QList< Tag > &value)
 
void setTopics (const QList< Resource > &value)
 
void setTypes (const QList< QUrl > &types)
 
QStringList symbols () const
 
QList< Tag > tags () const
 
File toFile () const
 
QList< Resource > topics () const
 
QString type () const
 
QList< QUrl > types () const
 
QString uri () const
 
int usageCount () const
 

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.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal