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());
}
Aggregations