Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem regarding Jena Adapter

838874Apr 29 2011 — edited Apr 29 2011
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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 27 2011
Added on Apr 29 2011
1 comment
113 views