/** * Delete the justifications given as argument (batch operation). * * @param justifications * @throws SQLException */ public void deleteJustifications(Iterable<Justification> justifications) throws SQLException { deleteJustifications(new IteratorIteration<Justification, SQLException>(justifications.iterator())); }
/** * Delete the justifications given as argument (batch operation). * * @param justifications * @throws SQLException */ public void deleteJustifications(Iterable<Justification> justifications) throws SQLException { deleteJustifications(new IteratorIteration<Justification, SQLException>(justifications.iterator())); }
@Override public void remove(Iterable<? extends Statement> statements, Resource... contexts) throws RepositoryException { if (isAllContext(contexts)) { remove(new IteratorIteration<Statement, RuntimeException>(statements.iterator())); } else { super.remove(statements, contexts); } }
@Override public void add(Iterable<? extends Statement> statements, Resource... contexts) throws RepositoryException { if (isNilContext(contexts)) { add(new IteratorIteration<Statement, RuntimeException>(statements.iterator())); } else { super.add(statements, contexts); } }
new ExceptionConvertingIteration<Statement, RepositoryException>( new UnionIteration<>( new IteratorIteration<Statement, SQLException>(tripleBatch.listTriples(subject,predicate,object,context, wildcardContext).iterator()), new DelayedIteration<Statement, SQLException>() { @Override
new ExceptionConvertingIteration<Statement, RepositoryException>( new UnionIteration<>( new IteratorIteration<Statement, SQLException>(tripleBatch.listTriples(subject,predicate,object,context, wildcardContext).iterator()), new DelayedIteration<Statement, SQLException>() { @Override
return new DistinctIteration<>( new UnionIteration<>( new ConvertingIteration<Resource,KiWiResource,SQLException>(new IteratorIteration<Resource, SQLException>(tripleBatch.listContextIDs().iterator())) { @Override protected KiWiResource convert(Resource sourceObject) throws SQLException {
return new DistinctIteration<>( new UnionIteration<>( new ConvertingIteration<Resource,KiWiResource,SQLException>(new IteratorIteration<Resource, SQLException>(tripleBatch.listContextIDs().iterator())) { @Override protected KiWiResource convert(Resource sourceObject) throws SQLException {
iter = new IteratorIteration(coll.iterator()); } else if (sp instanceof TransitivePropertySP && ((subjVar != null && subjVar.getValue() != null) || iter = new IteratorIteration(coll.iterator()); } else { for (BindingSet binding : bindings) {