Nepomuk-Core
datamanagementadaptor.cpp
Go to the documentation of this file.
22 Command line was: qdbusxml2cpp -a datamanagementadaptor -c DataManagementAdaptor -m org.kde.nepomuk.DataManagement.xml
74 void Nepomuk2::DataManagementAdaptor::addProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
78 enqueueCommand(new AddPropertyCommand(decodeUris(resources), decodeUri(property), Nepomuk2::DBus::resolveDBusArguments(values), app, m_model, message()));
81 void Nepomuk2::DataManagementAdaptor::addProperty(const QString &resource, const QString &property, const QDBusVariant &value, const QString &app)
83 addProperty(QStringList() << resource, property, QVariantList() << Nepomuk2::DBus::resolveDBusArguments(value.variant()), app);
86 QString Nepomuk2::DataManagementAdaptor::createResource(const QStringList &types, const QString &label, const QString &description, const QString &app)
90 enqueueCommand(new CreateResourceCommand(decodeUris(types), label, description, app, m_model, message()));
95 QString Nepomuk2::DataManagementAdaptor::createResource(const QString &type, const QString &label, const QString &description, const QString &app)
100 QList<Nepomuk2::SimpleResource> Nepomuk2::DataManagementAdaptor::describeResources(const QStringList &resources, int flags, const QStringList& targetParties)
104 enqueueCommand(new DescribeResourcesCommand(decodeUris(resources), Nepomuk2::DescribeResourcesFlags(flags), decodeUris(targetParties), m_model, message()));
109 QHash< QString, QString > Nepomuk2::DataManagementAdaptor::storeResources(const QList< Nepomuk2::SimpleResource >& resources, int identificationMode, int flags, const Nepomuk2::PropertyHash& additionalMetadata, const QString& app)
113 StoreResourcesCommand* command = new StoreResourcesCommand(resources, app, identificationMode, flags, additionalMetadata, m_model, message());
119 void Nepomuk2::DataManagementAdaptor::mergeResources(const QString &resource1, const QString &resource2, const QString &app)
128 void Nepomuk2::DataManagementAdaptor::mergeResources(const QStringList& resources, const QString& app)
142 void Nepomuk2::DataManagementAdaptor::removeDataByApplication(const QStringList &resources, int flags, const QString &app)
146 enqueueCommand(new RemoveResourcesByApplicationCommand(decodeUris(resources), app, flags, m_model, message()));
149 void Nepomuk2::DataManagementAdaptor::removeProperties(const QStringList &resources, const QStringList &properties, const QString &app)
153 enqueueCommand(new RemovePropertiesCommand(decodeUris(resources), decodeUris(properties), app, m_model, message()));
156 void Nepomuk2::DataManagementAdaptor::removeProperties(const QString &resource, const QString &property, const QString &app)
161 void Nepomuk2::DataManagementAdaptor::removeProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
165 enqueueCommand(new RemovePropertyCommand(decodeUris(resources), decodeUri(property), Nepomuk2::DBus::resolveDBusArguments(values), app, m_model, message()));
168 void Nepomuk2::DataManagementAdaptor::removeProperty(const QString &resource, const QString &property, const QDBusVariant &value, const QString &app)
170 removeProperty(QStringList() << resource, property, QVariantList() << Nepomuk2::DBus::resolveDBusArguments(value.variant()), app);
173 void Nepomuk2::DataManagementAdaptor::removeResources(const QStringList &resources, int flags, const QString &app)
177 enqueueCommand(new RemoveResourcesCommand(decodeUris(resources), app, flags, m_model, message()));
180 void Nepomuk2::DataManagementAdaptor::removeResources(const QString &resource, int flags, const QString &app)
185 void Nepomuk2::DataManagementAdaptor::setProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
189 enqueueCommand(new SetPropertyCommand(decodeUris(resources), decodeUri(property), Nepomuk2::DBus::resolveDBusArguments(values), app, m_model, message()));
192 void Nepomuk2::DataManagementAdaptor::setProperty(const QString &resource, const QString &property, const QDBusVariant &value, const QString &app)
194 setProperty(QStringList() << resource, property, QVariantList() << Nepomuk2::DBus::resolveDBusArguments(value.variant()), app);
202 QUrl Nepomuk2::DataManagementAdaptor::decodeUri(const QString &s, bool namespaceAbbrExpansion) const
219 QList<QUrl> Nepomuk2::DataManagementAdaptor::decodeUris(const QStringList &urlStrings, bool namespaceAbbrExpansions) const
235 void Nepomuk2::DataManagementAdaptor::importResources(const QString &url, const QString &serialization, int identificationMode, int flags, const QString &app)
240 void Nepomuk2::DataManagementAdaptor::importResources(const QString &url, const QString &serialization, int identificationMode, int flags, const Nepomuk2::PropertyHash &additionalMetadata, const QString &app)
244 enqueueCommand(new ImportResourcesCommand(decodeUri(url), Soprano::mimeTypeToSerialization(serialization), serialization, identificationMode, flags, additionalMetadata, app, m_model, message()));
247 QString Nepomuk2::DataManagementAdaptor::exportResources(const QStringList &resources, const QString &mimeType, int flags, const QStringList &targetParties)
251 enqueueCommand(new ExportResourcesCommand(decodeUris(resources), Soprano::mimeTypeToSerialization(mimeType), mimeType, Nepomuk2::DescribeResourcesFlags(flags), decodeUris(targetParties), m_model, message()));
QList< QUrl > decodeUris(const QStringList &s, bool namespaceAbbrExpansion=true) const
Tries to decode a list of URIs including namespace abbreviation lookup for known ontologies (Example:...
Definition: datamanagementadaptor.cpp:219
Q_SCRIPTABLE void removeProperties(const QStringList &resources, const QStringList &properties, const QString &app)
Definition: datamanagementadaptor.cpp:149
QVariant resolveDBusArguments(const QVariant &v)
Convert QDBusArguments variants into QUrl, QDate, QTime, and QDateTime variants.
Definition: dbustypes.cpp:62
DataManagementAdaptor(Nepomuk2::DataManagementModel *parent)
Definition: datamanagementadaptor.cpp:44
Q_SCRIPTABLE QList< Nepomuk2::SimpleResource > describeResources(const QStringList &resources, int flags, const QStringList &targetParties)
Definition: datamanagementadaptor.cpp:100
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
KJob * importResources(const KUrl &url, Soprano::RdfSerialization serialization, const QString &userSerialization=QString(), StoreIdentificationMode identificationMode=IdentifyNew, StoreResourcesFlags flags=NoStoreResourcesFlags, const QHash< QUrl, QVariant > &additionalMetadata=QHash< QUrl, QVariant >(), const KComponentData &component=KGlobal::mainComponent())
Import an RDF graph from a URL.
Definition: datamanagement.cpp:154
KJob * removeProperty(const QList< QUrl > &resources, const QUrl &property, const QVariantList &values, const KComponentData &component=KGlobal::mainComponent())
Remove values of a property from one or more resources.
Definition: datamanagement.cpp:61
Q_SCRIPTABLE void addProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
Definition: datamanagementadaptor.cpp:74
~DataManagementAdaptor()
Definition: datamanagementadaptor.cpp:68
Q_SCRIPTABLE QHash< QString, QString > storeResources(const QList< Nepomuk2::SimpleResource > &resources, int identificationMode, int flags, const Nepomuk2::PropertyHash &additionalMetadata, const QString &app)
Definition: datamanagementadaptor.cpp:109
Q_SCRIPTABLE void clearCache()
Definition: datamanagementadaptor.cpp:256
Q_SCRIPTABLE QString createResource(const QStringList &types, const QString &label, const QString &description, const QString &app)
Definition: datamanagementadaptor.cpp:86
Q_SCRIPTABLE void setProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
Definition: datamanagementadaptor.cpp:185
Q_SCRIPTABLE void mergeResources(const QString &resource1, const QString &resource2, const QString &app)
Definition: datamanagementadaptor.cpp:119
KJob * removeProperties(const QList< QUrl > &resources, const QList< QUrl > &properties, const KComponentData &component=KGlobal::mainComponent())
Remove one or more properties from one or more resources.
Definition: datamanagement.cpp:74
QUrl decodeUri(const QString &s, bool namespaceAbbrExpansion=true) const
Tries to decode a URI including namespace abbreviation lookup for known ontologies (Example: nao:Tag)...
Definition: datamanagementadaptor.cpp:202
Q_SCRIPTABLE void removeResources(const QStringList &resources, int flags, const QString &app)
Definition: datamanagementadaptor.cpp:173
KJob * removeResources(const QList< QUrl > &resources, Nepomuk2::RemovalFlags flags=Nepomuk2::NoRemovalFlags, const KComponentData &component=KGlobal::mainComponent())
Completely remove resources from the database.
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
Q_SCRIPTABLE void removeProperty(const QStringList &resources, const QString &property, const QVariantList &values, const QString &app)
Definition: datamanagementadaptor.cpp:161
Q_SCRIPTABLE void removeDataByApplication(int flags, const QString &app)
Definition: datamanagementadaptor.cpp:135
CreateResourceJob * createResource(const QList< QUrl > &types, const QString &label, const QString &description, const KComponentData &component=KGlobal::mainComponent())
Create a new resource.
Definition: datamanagement.cpp:85
Q_SCRIPTABLE QString exportResources(const QStringList &resources, const QString &mimeType, int flags, const QStringList &targetParties)
Definition: datamanagementadaptor.cpp:247
QUrl decodeUrl(const QString &urlsString)
Definition: datamanagementcommand.cpp:96
void setPrefixes(const QHash< QString, QString > &prefixes)
Set the prefixes that will be supported for script convenience.
Definition: datamanagementadaptor.cpp:230
Q_SCRIPTABLE void importResources(const QString &url, const QString &serialization, int identificationMode, int flags, const Nepomuk2::PropertyHash &additionalMetadata, const QString &app)
Definition: datamanagementadaptor.cpp:240
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 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:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.