Nepomuk
Go to the documentation of this file.
21 #ifndef _NEPOMUK_RESOURCE_H_
22 #define _NEPOMUK_RESOURCE_H_
24 #include <QtCore/QHash>
25 #include <QtCore/QStringList>
31 #include "nepomuk_export.h"
35 class ResourceManager;
169 #ifndef KDE_NO_DEPRECATED
202 Resource( ResourceData* );
212 Resource& operator=(
const Resource& other );
217 Resource& operator=(
const QUrl& uri );
243 #ifndef KDE_NO_DEPRECATED
244 KDE_DEPRECATED
QString uri()
const;
260 QUrl resourceUri()
const;
276 #ifndef KDE_NO_DEPRECATED
277 KDE_DEPRECATED
QString type()
const;
289 QUrl resourceType()
const;
311 void addType(
const QUrl& type );
317 bool hasType(
const QUrl& typeUri )
const;
332 #ifndef KDE_NO_DEPRECATED
349 bool hasProperty(
const QUrl& uri )
const;
361 #ifndef KDE_NO_DEPRECATED
362 KDE_DEPRECATED
bool hasProperty(
const QString& uri )
const;
376 #ifndef KDE_NO_DEPRECATED
386 void setProperty(
const QUrl& uri,
const Variant& value );
396 void addProperty(
const QUrl& uri,
const Variant& value );
401 #ifndef KDE_NO_DEPRECATED
402 KDE_DEPRECATED
void setProperty(
const QString& uri,
const Variant& value );
410 void removeProperty(
const QUrl& uri );
420 void removeProperty(
const QUrl& uri,
const Variant& value );
425 #ifndef KDE_NO_DEPRECATED
426 KDE_DEPRECATED
void removeProperty(
const QString& uri );
449 bool isValid()
const;
468 QString genericDescription()
const;
490 bool operator==(
const Resource& )
const;
497 bool operator!=(
const Resource& )
const;
509 void setDescription(
const QString& value );
514 static QString descriptionUri();
529 void addIdentifier(
const QString& value );
534 static QString identifierUri();
549 void addAltLabel(
const QString& value );
569 void addAnnotation(
const Resource& value );
574 static QString annotationUri();
593 void addTag(
const Tag& value );
613 void addTopic(
const Resource& value );
633 void addIsTopicOf(
const Resource& value );
653 void addIsRelated(
const Resource& value );
668 void setLabel(
const QString& value );
678 quint32 rating()
const;
683 void setRating(
const quint32& value );
712 void addSymbol(
const QString& value );
753 int usageCount()
const;
761 void increaseUsageCount();
797 void determineFinalResourceData()
const;
799 ResourceData* m_data;
804 friend class ResourceData;
Resource is the central object type in Nepomuk.
A Tag can be assigned to any Thing.
The ResourceManager is the central Nepomuk configuration point.
uint qHash(const Resource &res)
A property is a resource of type rdf:Property which relates a domain with a range.
QString errorString(ErrorCode code)
A communication error, i.e.
A Nepomuk PIMO Thing resource.
The Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding...
A Nepomuk resource representing a file.
A Class is a resource of type rdf:Class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:04 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.