Don
Don

Reputation: 1458

How to: Backing up a Ontology?

I'm working on a dynamic system that uses a not too big ontology, to make correct decisions based on received information. I need to back up this ontology, together with its individuals so that the system can be restored after failure, but I don't know the ontology, nor how many individuals it contains, so the backing up needs to be as generic as possible.

I would prefer that one function could be called, just to signal my backing up part of the code can do its thing, instead of demanding from the ontology code to call a method for each seperate ontology or individual.

Using the OWL API, is this possible? Can I back up my system in a generic way?

Upvotes: 1

Views: 64

Answers (1)

aviad
aviad

Reputation: 8278

You can try to use Jena it supports persistent ontologies. Also, you need to decide in what format you will store your ontology (XML, JSON, etc), then for example, the backup method can create an XML out of every semantic entity. You can use JAXB/XStream/gson to achieve that (Java to XML/JSON). Good luck!

Upvotes: 1

Related Questions