DataPropertyIndexClient Class

The DataPropertyIndexClient class provides a ROS service abstraction for data properties exploration. More...

Ros1 Package: ontologenius
Ros2 Package: ontopy
Inherits: OntologyIndexClient

Methods

__init__(self, name)
integer[] getDown(self, index, depth = -1)
integer[] getDisjoint(self, index)
integer[] getDomain(self, index, depth = -1)
integer[] getRange(self, index)

Reimplemented Methods

Detailed Description

The DataPropertyIndexClient class provides an abstraction of ontologenius data properties ROS service.

The ontologenius data properties service allows the exploration of data properties contained by ontologenius core.

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

At the difference of the usual DataPropertyClient class, this one provides access to the interface based on indexes (integers) for better performances.

See also DataPropertyClient.

See also IndividualIndexClient, ClassIndexClient and ObjectPropertyIndexClient.

Methods Documentation

__init__(self, name)

Constructs a class client.

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

getDown(self, index, depth = -1)

Gives all properties (integer[]) below the one given in the parameter: index(integer).

The optional depth(int) parameter can be set to limit tree propagation to a specific value. The default value -1 represents no propagation limitation.

getDisjoint(self, index)

Gives all the disjoint properties (integer[]) of the property index (integer).

getDomain(self, index, depth = -1)

Gives all the domain classes (integer[]) of the property index(integer).

The optional depth(int) parameter can be set to limit tree propagation to a specific value. The default value -1 represents no propagation limitation while the value 0 corresponds to the direct domains.

getRange(self, index)

Gives all the ranges types (integer[]) of the property index(integer).