This content has been marked as final. Show 3 replies
You might want to look at the OracleUtils.getAllReadableModels(Oracle oracle) function. It returns a list of all the models readable by the user who established the Oracle session.
Thanks for your reply.
Which version of Oracle Jena Adapter you were using?
I'm using Jena Adapter 2 and the function that you referred to is not exist.
I see. OracleUtils.getAllReadableModels is available in the latest version of the Jena Adaptor (11.2). I suggest upgrading your database and the Jena Adaptor version if possible, since it contains many new features and optimizations.
One alternative is to query the semantic model views directly from your Java application. This statement: "SELECT 1 FROM MDSYS.SEM_MODEL$ WHERE MODEL_NAME=?" should do the trick. Please consult the official documentation for more information on the MDSYS.SEM_MODEL$ view.