Nepomuk-Core
simpleresource.cpp
Go to the documentation of this file.
84 Nepomuk2::SimpleResource & Nepomuk2::SimpleResource::operator=(const Nepomuk2::SimpleResource &other)
170 bool Nepomuk2::SimpleResource::containsNode(const QUrl &property, const Soprano::Node &node) const
180 void Nepomuk2::SimpleResource::setPropertyNode(const QUrl &property, const Soprano::Node &value)
192 void Nepomuk2::SimpleResource::setProperty(const QUrl& property, const Nepomuk2::SimpleResource& res)
213 void Nepomuk2::SimpleResource::addProperty(const QUrl& property, const Nepomuk2::SimpleResource& res)
307 QDataStream & Nepomuk2::operator<<(QDataStream & stream, const Nepomuk2::SimpleResource& resource)
QList< Soprano::Statement > toStatementList() const
Converts the resource into a list of statements.
Definition: simpleresource.cpp:112
QVariantList property(const QUrl &property) const
Get all values for property.
Definition: simpleresource.cpp:292
QDataStream & operator>>(QDataStream &, Nepomuk2::SimpleResource &)
Definition: simpleresource.cpp:313
void addPropertyNode(const QUrl &property, const Soprano::Node &value)
Add a property.
Definition: simpleresource.cpp:218
void setTypes(const QList< QUrl > &types)
A convenience method which sets the property of type rdf:type.
Definition: simpleresource.cpp:262
KJob * addProperty(const QList< QUrl > &resources, const QUrl &property, const QVariantList &values, const KComponentData &component=KGlobal::mainComponent())
Add one or more property values to one or more resources.
Definition: datamanagement.cpp:36
void setProperty(const QUrl &property, const QVariant &value)
Set a property overwriting existing values.
Definition: simpleresource.cpp:186
void setProperties(const PropertyHash &properties)
Set the properties, replacing the existing properties.
Definition: simpleresource.cpp:271
Represents a snapshot of one Nepomuk resource.
Definition: simpleresource.h:46
PropertyHash properties() const
Definition: simpleresource.cpp:155
QDataStream & operator<<(QDataStream &, const Nepomuk2::SimpleResource &)
Definition: simpleresource.cpp:307
bool contains(const QUrl &property) const
Definition: simpleresource.cpp:160
void addProperty(const QUrl &property, const QVariant &value)
Add a property.
Definition: simpleresource.cpp:206
void removeAll(const QUrl &property, const QVariant &value)
Remove all property/value pairs matchin the provided pattern.
Definition: simpleresource.cpp:237
void addProperties(const PropertyHash &properties)
Add a set of properties to the existing ones.
Definition: simpleresource.cpp:281
bool containsNode(const QUrl &property, const Soprano::Node &value) const
Definition: simpleresource.cpp:170
SimpleResource(const QUrl &uri=QUrl())
Definition: simpleresource.cpp:62
void addType(const QUrl &type)
A convenience method which adds a property of type rdf:type.
Definition: simpleresource.cpp:257
KJob * setProperty(const QList< QUrl > &resources, const QUrl &property, const QVariantList &values, const KComponentData &component=KGlobal::mainComponent())
Set the values of a property for one or more resources.
Definition: datamanagement.cpp:48
void remove(const QUrl &property, const QVariant &value)
Definition: simpleresource.cpp:227
SimpleResource & operator=(const SimpleResource &other)
Definition: simpleresource.cpp:84
bool operator==(const SimpleResource &other) const
Definition: simpleresource.cpp:150
void setPropertyNode(const QUrl &property, const Soprano::Node &value)
Set a property overwriting existing values.
Definition: simpleresource.cpp:180
void setUri(const QUrl &uri)
Setting an invalid/empty uri will create a new random ID.
Definition: simpleresource.cpp:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.