OntologyManipulatorIndex Class

The OntologyManipulatorIndex class is an object with instances of all classes needed to manipulate an ontology based on indexes.More...

Header: #include "ontologenius/OntologyManipulatorIndex.h"
Namespace: onto

Public Attributes

Public Functions

OntologyManipulatorIndex(const std::string& name = "")
OntologyManipulatorIndex(const OntologyManipulatorIndex& other)
bool close()
size_t nb()
resetNb()
verbose(bool verbose)

Detailed Description

The OntologyManipulatorIndex class is just an object to access all API ROS abstraction classes so that you can query and manage ontologenius.

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

See also OntologiesManipulator and OntologyManipulator.

Public Attribute Documentation

individuals : IndividualIndexClient

ROS service client to query ontologenius about individuals using indexes.

objectProperties : ObjectPropertyIndexClient

ROS service client to query ontologenius about object properties using indexes.

dataProperties : DataPropertyIndexClient

ROS service client to query ontologenius about data properties using indexes.

classes : ClassIndexClient

ROS service client to query ontologenius about classes using indexes.

actions : ActionClient

ROS service client to manage the ontology instance.

reasoners : ReasonerClient

ROS service client to manage reasoners plugins.

feeder : FeederPublisher

ROS Publisher to insert and delete knowledge dynamically.

sparql : SparqlIndexClient

ROS service client to make SPARQL queries using indexes.

conversion : ConversionClient

ROS service client to to convert indentifiers to indexes and inverse.

Public Function Documentation

OntologyManipulatorIndex::OntologyManipulatorIndex(const std::string& name = "")

Constructs an index based ontology manipulator.

Can be used in a multi-ontology mode by specifying the name of the ontology name. For classic use, do not specify the ontology name name.

OntologyManipulatorIndex::OntologyManipulatorIndex(const OntologyManipulatorIndex& other)

OntologyManipulatorIndex copy constructor.

size_t OntologyManipulatorIndex::nb()

Gives the total number of service calls from all ROS clients instances since the last reset.

OntologyManipulatorIndex::resetNb()

Reset Call Counter for all instances of ROS clients.

bool OntologyManipulatorIndex::close()

Same as the ActionClient closing function. Link all the concepts loaded from files and the Internet. Before closing an ontology, exploration requests are not allowed.

Returns false if the service call fails.

OntologyManipulatorIndex::verbose(bool verbose)

If verbose is set to true, the clients will post messages about the failure to call the services and about their restoration.