Search in sources :

Example 1 with OntModelImpl

use of org.apache.jena.ontology.impl.OntModelImpl in project jena by apache.

the class TDB method sync.

/**
 * Sync a TDB-backed Model. Do nothing if not TDB-backed.
 */
public static void sync(Model model) {
    if (model instanceof OntModelImpl) {
        OntModelImpl ontModel = (OntModelImpl) model;
        sync(ontModel.getBaseGraph());
        return;
    }
    // This never happens (there is only one OntModel implementation)
    if (model instanceof OntModel) {
        OntModel ontModel = (OntModel) model;
        sync(ontModel.getBaseModel());
        return;
    }
    sync(model.getGraph());
}
Also used : OntModelImpl(org.apache.jena.ontology.impl.OntModelImpl) OntModel(org.apache.jena.ontology.OntModel)

Aggregations

OntModel (org.apache.jena.ontology.OntModel)1 OntModelImpl (org.apache.jena.ontology.impl.OntModelImpl)1