Hi,
You can check whether the dataset contains a specific named model with 
dataset.containesNamedModel() [1]

Best Merlin

[1]https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Dataset.html#containsNamedModel-java.lang.String-


Am 09.01.2020 06:59 schrieb Ashwani Rathi <[email protected]>:
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



Reply via email to