OntologyManipulator Class
The OntologyManipulator class is an object with instances of all classes needed to manipulate an ontology.More...
Ros1 Package: | ontologenius |
Ros2 Package: | ontopy |
Attributes
- individuals : IndividualClient
- objectProperties : ObjectPropertyClient
- dataProperties : DataPropertyClient
- classes : ClassClient
- actions : ActionClient
- reasoners : ReasonerClient
- feeder : FeederPublisher
- sparql : SparqlClient
Methods
__init__(self, name = '') | |
bool | close(self) |
int | nb(self) |
resetNb(self) | |
setVerbose(self, 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.
Attributes 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.
Methods Documentation
__init__(self, name = '')
Constructs an ontology manipulator.
Can be used in a multi-ontology mode by specifying the name of the ontology name(str). For classic use, do not specify the ontology name name.
nb(self)
Gives the total number (int) of service calls from all ROS clients instances since the last reset.
resetNb(self)
Reset Call Counter for all instances of ROS clients.
close(self)
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.
setVerbose(self, verbose)
If verbose is set to True, the clients will post messages about the failure to call the services and about their restoration.