Thanks for the reply.

Also in jena 2, we can set TableNamePrefix on an IDBConnection with the 
following statements:

                IDBConnection conn = null;
                IRDBDriver driver = conn.getDriver();
                driver.setTableNamePrefix("prefix");

So what actually does this achieve. And how can we achieve the same 
functionality in jena 3 with org.apache.jena.sdb.sql.SDBConnection class?

Regards,
Ashwani

On 09/01/20, 2:15 PM, "Bögershausen, Merlin Michael" 
<[email protected]> wrote:

    Hi,
    
    You can check whether the dataset contains a specific named model with 
dataset.containesNamedModel() [1]
    
    
    
    Best Merlin
    
    
    
    
[1]https://urldefense.proofpoint.com/v2/url?u=https-3A__jena.apache.org_documentation_javadoc_arq_org_apache_jena_query_Dataset.html-23containsNamedModel-2Djava.lang.String-2D&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=ld8gXdwUlVansMT0flGoGNN0AOkhQba_hAJM5PewJCA&m=_5kPj72-EHVEVxkEWZfp9umEDalFfeUoHIdfCCb9Plo&s=HB2xzUCShqe8JzEhH_9HaUktJ5rnUU2XOCqrcL6wOe8&e=
 
    
    
    
    
    
    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