ReasonerClient Class

The ReasonerClient class provides an abstraction for ontologenius reasoner service. More...

Ros1 Package: ontologenius
Ros2 Package: ontopy
Inherits: ClientBase

Mathods

__init__(self, name)
str[] list(self)
str[] activeList(self)
bool activate(self, name)
bool deactivate(self, name)
str getDescription(self, name)

Reimplemented Methods

Detailed Description

The ReasonerClient class provides an abstraction ontologenius reasoner ROS services.

The reasoner client is used to manage reasoner plugins for an ontology instance. This makes it possible to activate or deactivate plugins.

This class is based on ClientBase and so ensure a persistent connection with the service based on. The persistent connection ensures a minimal response time. A reconnection logic is implemented in the event that the persistent connection fails.

Methods Documentation

__init__(self, name)

Constructs a manager client.

Can be used in a multi-ontology mode by specifying the name of the ontology name(str). For classic use, name should be defined as "".

list(self)

Returns the name of the plugins available (str[]).

activeList(self)

Returns the name of the activated plugins (str[]).

activate(self, name)

Activate the plugin named name(str).

Returns False if the service call fails.

deactivate(self, name)

Deactivate the plugin named name(str).

Returns False if the service call fails.

getDescription(self, name)

Returns the description (str) of the plugin named name.