/** * Process all triples with <code>rdf:type</code> predicate. If {@link PelletOptions#PREPROCESS_TYPE_TRIPLES} option is <code>true</code> this function is a * noop. */ protected void processTypes() { if (_preprocessTypeTriples) { _logger.fine("processTypes"); if (isLoadABox()) processTypes(Node.ANY); else for (final Node type : TBOX_TYPES) processTypes(type); } }
/** * Process all triples with <code>rdf:type</code> predicate. If {@link PelletOptions#PREPROCESS_TYPE_TRIPLES} option is <code>true</code> this function is a * noop. */ protected void processTypes() { if (_preprocessTypeTriples) { _logger.fine("processTypes"); if (isLoadABox()) processTypes(Node.ANY); else for (final Node type : TBOX_TYPES) processTypes(type); } }
/** * Process all triples with <code>rdf:type</code> predicate. If {@link PelletOptions#PREPROCESS_TYPE_TRIPLES} option is <code>true</code> this function is a * noop. */ protected void processTypes() { if (_preprocessTypeTriples) { _logger.fine("processTypes"); if (isLoadABox()) processTypes(Node.ANY); else for (final Node type : TBOX_TYPES) processTypes(type); } }
/** * {@inheritDoc} */ @Override public void load(final Iterable<Graph> graphs) throws UnsupportedFeatureException { final Optional<Timer> timer = _kb.getTimers().startTimer("load"); _monitor.setProgressTitle("Loading"); _monitor.taskStarted(); _graph = EMPTY_GRAPH; preprocess(); for (final Graph g : graphs) { _graph = g; processTypes(); } for (final Graph g : graphs) { _graph = g; processTriples(); } processUntypedResources(); _monitor.taskFinished(); timer.ifPresent(t -> t.stop()); }
/** * {@inheritDoc} */ @Override public void load(final Iterable<Graph> graphs) throws UnsupportedFeatureException { final Optional<Timer> timer = _kb.getTimers().startTimer("load"); _monitor.setProgressTitle("Loading"); _monitor.taskStarted(); _graph = EMPTY_GRAPH; preprocess(); for (final Graph g : graphs) { _graph = g; processTypes(); } for (final Graph g : graphs) { _graph = g; processTriples(); } processUntypedResources(); _monitor.taskFinished(); timer.ifPresent(t -> t.stop()); }
/** * {@inheritDoc} */ @Override public void load(final Iterable<Graph> graphs) throws UnsupportedFeatureException { final Optional<Timer> timer = _kb.getTimers().startTimer("load"); _monitor.setProgressTitle("Loading"); _monitor.taskStarted(); _graph = EMPTY_GRAPH; preprocess(); for (final Graph g : graphs) { _graph = g; processTypes(); } for (final Graph g : graphs) { _graph = g; processTriples(); } processUntypedResources(); _monitor.taskFinished(); timer.ifPresent(t -> t.stop()); }