1 Reply Latest reply: Apr 29, 2011 12:31 PM by alwu-Oracle RSS

    Problem regarding Jena Adapter

    838874
      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" );
      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