BaseDriver

The BaseDriver class clears the database and checks constraints.

BaseDriver.clear_database()

Clears the database, deleting all nodes and edges.


BaseDriver.check_domain_range()

This function uses the Neo4j driver and the ontology to check whether there are properties in the database that violate the domains and ranges specified in the ontology.


BaseDriver.add_constraints()

This function adds some constraints for unique node names specified in the data schema.