Christopher Blunck said: > The JavaDocs for ModelFactory.createOntologyModel clearly state: Answer a > new ontology model, constructed according to the given ontology model > specification, and starting with the ontology data in the given model. > > Note the "starting with the ontology data in the given model". I've seen > that the resulting OntModel does in fact contain all of the triples loaded > from the SDB store.
Yes -- but it contains them because the SDB model is part of the OntModel. When you query an OntModel, it queries the base model (your SDB model in this case) and any imported models. The OntModel doesn't have a copy of the base model; it just refers to it. > In my code I'm not interested in querying. I'm "write-only" and I'm simply > trying to insert triples into the store using the owl2java Jena based > classes I instantiate and populate. That's fine. If you add triples to an OntModel, they are pushed into the base model. > Is there a way for me to use SDB to persist data in a "write-only" way where > I don't read the existing triples out of the store first? If you (or the OntModel code when doing its onw queries) don't ask for the triples, they aren't pulled out of the store. Chris PS Things are rather different if your OntModel does inference, since it then has to store intermediate results in memory and consult possibly all of the base & imported models involved. -- "You're down as expendable. You don't get a weapon." /Dark Lord of Derkholm/ Epimorphics Ltd, http://www.epimorphics.com Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT Epimorphics Ltd. is a limited company registered in England (number 7016688)
