OntologyManipulator Class
The OntologyManipulator class is an object with instances of all classes needed to manipulate an ontology.More...
Header: | #include "ontologenius/OntologyManipulator.h" |
Namespace: | onto |
Public Attributes
- individuals : IndividualClient
- objectProperties : ObjectPropertyClient
- dataProperties : DataPropertyClient
- classes : ClassClient
- actions : ActionClient
- reasoners : ReasonerClient
- feeder : FeederPublisher
- sparql : SparqlClient
Public Functions
OntologyManipulator(const std::string& name = "") | |
OntologyManipulator(const OntologyManipulator& other) | |
bool | close() |
size_t | nb() |
resetNb() | |
verbose(bool verbose) |
Detailed Description
The OntologyManipulator class is just an object to access all API ROS abstraction classes so that you can query and manage ontologenius.
See also OntologiesManipulator.
Public Attribute Documentation
individuals : IndividualClient
ROS service client to query ontologenius about individuals.
objectProperties : ObjectPropertyClient
ROS service client to query ontologenius about object properties.
dataProperties : DataPropertyClient
ROS service client to query ontologenius about data properties.
classes : ClassClient
ROS service client to query ontologenius about classes.
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 : SparqlClient
ROS service client to make SPARQL queries.
Public Function Documentation
OntologyManipulator::OntologyManipulator(const std::string& name = "")
Constructs an 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.
OntologyManipulator::OntologyManipulator(const OntologyManipulator& other)
OntologyManipulator copy constructor.
size_t OntologyManipulator::nb()
Gives the total number of service calls from all ROS clients instances since the last reset.
OntologyManipulator::resetNb()
Reset Call Counter for all instances of ROS clients.
bool OntologyManipulator::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.
OntologyManipulator::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.