Problem regarding Jena Adapter
838874Apr 29 2011 — edited Apr 29 2011Suppose I create a model using the commands given below:
String szModelName = "modeltest";
String usr = "rdfusr";
String pwd = "";
String url = "jdbc:oracle:thin:@//127.0.0.1:1521/orcl";
Oracle oracle = new Oracle(url, usr, pwd);
Model model = ModelOracleSem.createOracleSemModel(oracle, szModelName);
// load UNIV ontology
InputStream in = FileManager.get().open("C://univ-bench.owl" );
model.read(in, null);
OutputStream os = new FileOutputStream("univ-bench.nt");
model.write(os, "N-TRIPLE");
os.close();
My problem is that where is this model created? I dont get the information about the model when I execute the following query from SQL PLUS.
SELECT SEM_APIS.GET_MODEL_ID('modeltest') AS model_id FROM DUAL;
Is it a temporary model which gets deleted when the program execution halts?
Thanks