DataPropertyClient Class

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

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

Public Functions

DataPropertyClient(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)

Reimplemented Public Functions

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.

Public Function Documentation

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

Constructs a data 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> DataPropertyClient::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> DataPropertyClient::getDisjoint(const std::string& name)

Gives all the disjoint properties of the property name.

std::vector<std::string> DataPropertyClient::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> DataPropertyClient::getRange(const std::string& name)

Gives all the ranges types of the property name.