ObjectPropertyClient Class
The ObjectPropertyClient class provides a ROS service abstraction for object 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, depth = -1) |
str[] | getInverse(self, name) |
Reimplemented Methods
- 10 methods inherited from OntologyClient
- 2 methods inherited from ClientBase
Detailed Description
The ObjectPropertyClient class provides an abstraction of ontologenius object properties ROS service.
The ontologenius object properties service allows the exploration of object properties contained by ontologenius core.
This class is based on ClientBase and so ensure a persistent connection with ontologenius/object_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 ClassClient, IndividualClient and DataPropertyClient.
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 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, depth = -1)
Gives all the ranges 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 ranges.
getInverse(self, name)
Gives all the inverses properties (str[]) of the property name(str).