/** * Reloads all the triple from the underlying models regardless of updates or _current state. KB will be cleared completely and recreated from scratch. */ public void reload() { _logger.fine("Clearing the KB and reloading"); clear(); Set<Graph> graphs = _graphListener.getLeafGraphs(); if (_loader.isLoadTBox()) { final Graph schema = getSchemaGraph(); if (schema != null) { graphs = new HashSet<>(graphs); graphs.add(schema); } } load(graphs); }
/** * Reloads all the triple from the underlying models regardless of updates or _current state. KB will be cleared completely and recreated from scratch. */ public void reload() { _logger.fine("Clearing the KB and reloading"); clear(); Set<Graph> graphs = _graphListener.getLeafGraphs(); if (_loader.isLoadTBox()) { final Graph schema = getSchemaGraph(); if (schema != null) { graphs = new HashSet<>(graphs); graphs.add(schema); } } load(graphs); }
/** * Reloads all the triple from the underlying models regardless of updates or _current state. KB will be cleared completely and recreated from scratch. */ public void reload() { _logger.fine("Clearing the KB and reloading"); clear(); Set<Graph> graphs = _graphListener.getLeafGraphs(); if (_loader.isLoadTBox()) { final Graph schema = getSchemaGraph(); if (schema != null) { graphs = new HashSet<>(graphs); graphs.add(schema); } } load(graphs); }
public void close(final boolean recursive) { if (closed) return; if (recursive) super.close(); else closed = true; if (_deductionsGraph != null) { _deductionsGraph.close(); _deductionsGraph = null; } clear(); _graphListener.dispose(); _kb.clear(); }
public void close(final boolean recursive) { if (closed) return; if (recursive) super.close(); else closed = true; if (_deductionsGraph != null) { _deductionsGraph.close(); _deductionsGraph = null; } clear(); _graphListener.dispose(); _kb.clear(); }
public void close(final boolean recursive) { if (closed) return; if (recursive) super.close(); else closed = true; if (_deductionsGraph != null) { _deductionsGraph.close(); _deductionsGraph = null; } clear(); _graphListener.dispose(); _kb.clear(); }