Saeed
2013-03-22 10:47:48 UTC
Hello,
I have a question regarding Model Interface; I would appreciate if someone helps me.
I’m using SDB and MySQL as tripe store in my application. The following lines are the peace of code which I use to connect to the database and make a Model and OntModel.
SDBConnection conn = newSDBConnection(jdbcConnection) ;
Store store = StoreFactory.create(storeDesc, conn) ;
Model model = SDBFactory.connectDefaultModel(store) ;
OntModel ont = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM,model);
My question is about instantiating a Model and making OntModel using Model.
When a Model instantiated, Is it just an interface to access the contents of database or the whole database contents are already transferred into Model?
If it is the second case then what happens when the database size is bigger than memory size of local machine??
My concern is about scalability. I want to know that if Jena is operable on different scales, and to be more specific when the size of our tripe store is much bigger than the memory of local machine which runs Jena API. In this case what is the best way to create an OntModel out of Model to not face any difficulties with memory space?
Best regards,
Saeed
I have a question regarding Model Interface; I would appreciate if someone helps me.
I’m using SDB and MySQL as tripe store in my application. The following lines are the peace of code which I use to connect to the database and make a Model and OntModel.
SDBConnection conn = newSDBConnection(jdbcConnection) ;
Store store = StoreFactory.create(storeDesc, conn) ;
Model model = SDBFactory.connectDefaultModel(store) ;
OntModel ont = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM,model);
My question is about instantiating a Model and making OntModel using Model.
When a Model instantiated, Is it just an interface to access the contents of database or the whole database contents are already transferred into Model?
If it is the second case then what happens when the database size is bigger than memory size of local machine??
My concern is about scalability. I want to know that if Jena is operable on different scales, and to be more specific when the size of our tripe store is much bigger than the memory of local machine which runs Jena API. In this case what is the best way to create an OntModel out of Model to not face any difficulties with memory space?
Best regards,
Saeed