Suppose 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" );
OutputStream os = new FileOutputStream("univ-bench.nt");
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?
The model is created in the schema specified when you create the Oracle object.
It is persisted. So after your java client exits you should be able to see it if you login
as the same database user.