OntologyManipulatorIndex Class

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

Ros1 Package: ontologenius
Ros2 Package: ontopy

Attributes

Methods

__init__(self, name = '')
bool close(self)
int nb(self)
resetNb(self)
setVerbose(self, 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.

Attributes 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.

Methods Documentation

__init__(self, name = '')

Constructs an index based 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.