You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Ashwani Rathi <as...@oracle.com> on 2020/01/09 05:59:25 UTC

Looking for alternate API for com.hp.hpl.jena.db.IDBConnection.containsModel

Hi All,
We are upgrading from jena 2 to jena 3.
We have the following method in com.hp.hpl.jena.db.IDBConnection in jena 2:

------------------------------------------------------------------------------------------------------------
containsModel

boolean containsModel(String name)                      throws RDFRDBException

    Test if a given model is contained in the database.

    Parameters:
        name - the name of a model which may be in the database
    Returns:
        Boolean true if the model is contained in the database
    Throws:
        RDFDBException
        RDFRDBException
    Since:
        Jena 2.0
------------------------------------------------------------------------------------------------------------
This method is used to check whether a given model exists in the underlying database.

So is there a corresponding method to check for models in database in jena 3 in org.apache.jena.sdb.sql.SDBConnection.java class or in any other jena 3 jar?

Regards,
Ashwani