PluginManager Class Reference
from PyKDE4.soprano import *
Inherits: QObject
Namespace: Soprano
Detailed Description
Methods | |
__init__ (self, QObject parent=0) | |
[const Backen] | allBackends (self) |
[const Soprano::Backen] | allBackends (self) |
[const Parse] | allParsers (self) |
[const Soprano::Parse] | allParsers (self) |
[const Serialize] | allSerializers (self) |
[const Soprano::Serialize] | allSerializers (self) |
Soprano.Backend | discoverBackendByFeatures (self, Soprano.BackendFeatures features, QStringList userFeatures=QStringList()) |
Soprano.Backend | discoverBackendByName (self, QString name) |
Soprano.Parser | discoverParserByName (self, QString name) |
Soprano.Parser | discoverParserForSerialization (self, Soprano.RdfSerialization serialization, QString userSerialization=QString()) |
Soprano.Serializer | discoverSerializerByName (self, QString name) |
Soprano.Serializer | discoverSerializerForSerialization (self, Soprano.RdfSerialization serialization, QString userSerialization=QString()) |
setPluginSearchPath (self, QStringList path, bool useDefaults=1) | |
Static Methods | |
Soprano.PluginManager | instance () |
Method Documentation
__init__ | ( | self, | ||
QObject | parent=0 | |||
) |
[const Backen] allBackends | ( | self ) |
[const Soprano::Backen] allBackends | ( | self ) |
[const Parse] allParsers | ( | self ) |
[const Soprano::Parse] allParsers | ( | self ) |
[const Serialize] allSerializers | ( | self ) |
[const Soprano::Serialize] allSerializers | ( | self ) |
Soprano.Backend discoverBackendByFeatures | ( | self, | ||
Soprano.BackendFeatures | features, | |||
QStringList | userFeatures=QStringList() | |||
) |
Find a backend plugin by its features.
- Parameters:
-
features The features that are requested, a combination of Soprano.BackendFeature flags.
- Parameters:
-
userFeatures If features contain Backend.BackendFeatureUser this paramter states the additionally requested user features.
- Returns:
- a Backend that supports the features defined in features.
Soprano.Backend discoverBackendByName | ( | self, | ||
QString | name | |||
) |
Find a backend plugin by its name.
- Returns:
- the backend specified by name or null if could not be found.
Soprano.Parser discoverParserByName | ( | self, | ||
QString | name | |||
) |
Find a parser plugin by its name.
- Returns:
- the parser specified by name or null if could not be found.
Soprano.Parser discoverParserForSerialization | ( | self, | ||
Soprano.RdfSerialization | serialization, | |||
QString | userSerialization=QString() | |||
) |
Find a Parser instance that is able to parse RDF data serialized as serialization.
- Parameters:
-
serialization The requested serialization.
- Parameters:
-
userSerialization If serialization is set to Soprano.SerializationUser this parameter specifies the serialization to use. It allows the extension of the %Soprano Parser interface with new RDF serializations that are not officially supported by %Soprano.
- Returns:
- A Parser plugin that can parse RDF data encoded in the requested serialization or 0 if no such plugin could be found.
Soprano.Serializer discoverSerializerByName | ( | self, | ||
QString | name | |||
) |
Find a serializer plugin by its name.
- Returns:
- the serializer specified by name or null if could not be found.
Soprano.Serializer discoverSerializerForSerialization | ( | self, | ||
Soprano.RdfSerialization | serialization, | |||
QString | userSerialization=QString() | |||
) |
Find a Serializer instance that is able to encode RDF data using serialization.
- Parameters:
-
serialization The requested serialization.
- Parameters:
-
userSerialization If serialization is set to Soprano.SerializationUser this parameter specifies the serialization to use. It allows the extension of the %Soprano Serializer interface with new RDF serializations that are not officially supported by %Soprano.
- Returns:
- A Serializer plugin that can serialize RDF data encoded in the requested serialization or 0 if no such plugin could be found.
Soprano.PluginManager instance | ( | ) |
Get the singleton instance of the PluginManager
setPluginSearchPath | ( | self, | ||
QStringList | path, | |||
bool | useDefaults=1 | |||
) |
Set the plugin search path. The PluginManager searches a set of folders for installed plugins. Here a plugin consists of a desktop file describing it and the actual plugin library file. For loading custom plugins manually see loadCustomPlugin.
- Parameters:
-
path The folders that PluginManager should search for plugin description files.
- Parameters:
-
useDefaults If true PluginManager will also search the default plugin paths
\sa soprano_writing_plugins
- Since:
- 2.3