cram2 / pycram

Cognitive Robot Abstract Machine in Python
https://pycram.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
20 stars 40 forks source link

[OntologyManager] Use in-memory SQL backend by default #198

Closed Tadinu closed 3 weeks ago

Tadinu commented 4 weeks ago

Related to #141 #166 #191, this PR switches the default SQL-backend to in-memory & add general catch of sqlite3.Error from owlready2 accessing to SQL backend as a disk-file, to avoid disrupting Designator functionality.

Specifically,

Also, A quick resolution is deleting the SQL file on disk. SQL backend essentially acts like a cache that is only required during program run, one if not-existing is automatically re-generated afresh from contents from the .owl, which together with all ontology data (including dynamically created concepts) can be saved anyway at program exit.

Tadinu commented 4 weeks ago

@tomsch420 @Tigul as reviewers