1 Reply Latest reply on Apr 29, 2011 5:31 PM by alwu-Oracle

    Problem regarding Jena Adapter

      Suppose I create a model using the commands given below:
      String szModelName = "modeltest";

      String usr = "rdfusr";
      String pwd = "";
      String url = "jdbc:oracle:thin:@//";
      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");

      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?