ObjectPropertyClient Class

The ObjectPropertyClient class provides a ROS service abstraction for object properties exploration. More...

Header: #include "ontologenius/clients/ontologyClients/ObjectPropertyClient.h"
Inherits: OntologyClient
Namespace: onto

Public Functions

ObjectPropertyClient(const std::string& name)
std::vector<std::string> getDown(const std::string& name, int depth = -1)
std::vector<std::string> getDisjoint(const std::string& name)
std::vector<std::string> getDomain(const std::string& name, int depth = -1)
std::vector<std::string> getRange(const std::string& name, int depth = -1)
std::vector<std::string> getInverse(const std::string& name)

Reimplemented Public Functions

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.

Public Function Documentation

ObjectPropertyClient::ObjectPropertyClient(const std::string& name)

Constructs am object property client.

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

std::vector<std::string> ObjectPropertyClient::getDown(const std::string& name, int depth = -1)

Gives all properties below the one given in the parameter: name.

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

std::vector<std::string> ObjectPropertyClient::getDisjoint(const std::string& name)

Gives all the disjoint properties of the property name.

std::vector<std::string> ObjectPropertyClient::getDomain(const std::string& name, int depth = -1)

Gives all the domain classes of the property name.

The optional depth 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.

std::vector<std::string> ObjectPropertyClient::getRange(const std::string& name, int depth = -1)

Gives all the ranges classes of the property name.

The optional depth 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.

std::vector<std::string> ObjectPropertyClient::getInverse(const std::string& name)

Gives all the inverses properties of the property name.