Fopa Léon Constantin
Fopa Léon Constantin

Reputation: 12363

How to store a Jena Model in a SDB database?

I've an ontology create that I've populate with individuals. Actually my ontology is an OntModel object let say model. How can I store all Individuals of my model in a SDB database. All examples that I've seen up to now only address the problem of reading data from a SDB database. But first of all, How have they been put there !

thanks for any reply

Upvotes: 0

Views: 995

Answers (1)

Ian Dickinson
Ian Dickinson

Reputation: 13295

Once you open up a Model backed by an SDB store, it's a normal Jena model and the standard techniques to read a file into the model and to assert triples into the model will automatically write through to the underlying relational database. The documentation confirms this.

You can also load data directly into an SDB store using the command line utilities.

Upvotes: 1

Related Questions