My other hope/assumption with this approach is that I can then make use of the persistent ontology model B without paying the run-time penalties of inferencing when I later access the model, via SPARQL queries or method access. So an additional question is how to create an OntModel of ontology model B after it has been stored and to have it behave like any other, memory resident OntModel. Is this possible?
I am trying to do this because the performance of reasoning on the fly is too slow. On Feb 16, 2013, at 3:18 PM, David Jordan wrote: > > I am trying to figure out how to do the following. I am using SDB. > I'd like to be able to insert some RDF data into a named model in SDB, call > it A. > I would also like to store into SDB the ontology model B that results from > inferencing on this model A. > This is to avoid doing the inferencing dynamically. > Ideally, I can then either examine A or the union of A and B. > > Within the online documentation, there is a section covering this: > http://jena.apache.org/documentation/ontology/index.html#working-with-persistent-ontologies > > But the sample source demonstrating how to do it is non-existent with the > following link: > http://jena.apache.org/documentation/ontology/TODO > > I'd rather have the names of these models associated programmatically, > instead of using an assembler file. > It appears that I need to use a ModelMaker, but I have not found how to > create a ModelMaker associated with my SDB Store instance. I am familiar with > the ModelFactory class, which can be used to construct a ModelMaker, but none > of the methods seem to apply for the case of an SDB Store. > > Help in getting this figured out is greatly appreciated… > > >
