@Override public void clearCache(String workspaceId) { checkNotNull(workspaceId, "Workspace should not be null"); LOGGER.info("clearing ontology cache for workspace %s", workspaceId); super.clearCache(workspaceId); graph.flush(); }
@Override public void clearCache() { LOGGER.info("clearing ontology cache"); super.clearCache(); graph.flush(); }
clearCache(); // this is required to cause a new lookup of classes for data and object properties. long endTime = System.currentTimeMillis(); long importAnnotationPropertiesTime = endTime - startTime; clearCache(); // this is required to cause a new lookup of classes for data and object properties. endTime = System.currentTimeMillis(); long importConceptsTime = endTime - startTime; clearCache(); // needed to find the relationship for inverse of endTime = System.currentTimeMillis(); long importObjectPropertiesTime = endTime - startTime; clearCache();
private void importDataProperties(OWLOntology o, Authorizations authorizations) { // find all extended data tables and pre-create them boolean foundExtendedDataTable = false; for (OWLDataProperty dataTypeProperty : o.getDataPropertiesInSignature()) { for (OWLDataRange rangeClassExpr : EntitySearcher.getRanges(dataTypeProperty, o)) { String rangeIri = ((HasIRI) rangeClassExpr).getIRI().toString(); if (OWLOntologyUtil.EXTENDED_DATA_TABLE_IRI.equals(rangeIri)) { importDataProperty(o, dataTypeProperty, authorizations); foundExtendedDataTable = true; break; } } } if (foundExtendedDataTable) { clearCache(); } for (OWLDataProperty dataTypeProperty : o.getDataPropertiesInSignature()) { importDataProperty(o, dataTypeProperty, authorizations); } }
getOrCreateTopObjectPropertyRelationship(authorizations); clearCache(); addEntityGlyphIcon(entityConcept, authorizations);