DataPropertyClient Class

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

Ros1 Package: ontologenius
Ros2 Package: ontopy
Inherits: OntologyClient

Methods

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

Reimplemented Methods

Detailed Description

The DataPropertyClient 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 ClientBase and so ensure a persistent connection with ontologenius/data_property service. The persistent connection ensures a minimal response time. A reconnection logic is implemented in the event that the persistent connection fails.

See also IndividualClient, ClassClient and ObjectPropertyClient.

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, name, depth = -1)

Gives all properties (str[]) below the one given in the parameter: name(str).

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, name)

Gives all the disjoint properties (str[]) of the property name (str).

getDomain(self, name, depth = -1)

Gives all the domain classes (str[]) of the property name(str).

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, name)

Gives all the ranges types (str[]) of the property name(str).