@Override public void removeStatements(final Resource s, final URI p, final Value o, final Resource... contexts) throws SailException { OpenRDFUtil.verifyContextNotNull(contexts); if (log.isInfoEnabled()) log.info("s=" + s + ", p=" + p + ", o=" + o + ", contexts=" + Arrays.toString(contexts)); if (contexts.length == 0 ) { // Operates on all contexts. removeStatements(s, p, o, (Resource) null/* c */); } else if (contexts.length == 1 && contexts[0] == null) { /* * Operate on just the nullGraph, or on the sole graph if not in * quads mode. */ removeStatements(s, p, o, quads ? NULL_GRAPH : null/* c */); } else { // FIXME parallelize this in chunks as per getStatements() for (Resource c : contexts) { removeStatements(s, p, o, (c == null && quads) ? NULL_GRAPH : c); } } }
@Override public void removeStatements(final Resource s, final URI p, final Value o, final Resource... contexts) throws SailException { OpenRDFUtil.verifyContextNotNull(contexts); if (log.isInfoEnabled()) log.info("s=" + s + ", p=" + p + ", o=" + o + ", contexts=" + Arrays.toString(contexts)); if (contexts.length == 0 ) { // Operates on all contexts. removeStatements(s, p, o, (Resource) null/* c */); } else if (contexts.length == 1 && contexts[0] == null) { /* * Operate on just the nullGraph, or on the sole graph if not in * quads mode. */ removeStatements(s, p, o, quads ? NULL_GRAPH : null/* c */); } else { // FIXME parallelize this in chunks as per getStatements() for (Resource c : contexts) { removeStatements(s, p, o, (c == null && quads) ? NULL_GRAPH : c); } } }
private void doRemoveStatement(final Statement stmt) throws SailException { final Resource[] c = (Resource[]) (stmt.getContext() == null ? defaultContext : new Resource[] { stmt.getContext() }); conn.removeStatements(// stmt.getSubject(), // stmt.getPredicate(), // stmt.getObject(), // c); if (c.length >= 2) { // removed from more than one context nmodified.addAndGet(c.length); } else { nmodified.incrementAndGet(); } }
conn.removeStatements(A, rdfType, B);
conn.removeStatements(A, rdfType, B);
conn.removeStatements(A, rdfType, B);
conn.removeStatements(A, rdfType, B);
sailConn.removeStatements(null/* s */, null/* p */, null/* o */, targetGraph); sailConn.removeStatements(null/* s */, null/* p */, sailConn.removeStatements(null/* s */, null/* p */, sailConn.removeStatements(null/* s */, null/* p */, null/* o */);
sailConn.removeStatements(null/* s */, null/* p */, null/* o */, targetGraph); sailConn.removeStatements(null/* s */, null/* p */, sailConn.removeStatements(null/* s */, null/* p */, sailConn.removeStatements(null/* s */, null/* p */, null/* o */);
conn.removeStatements(s, p, o, contexts);
conn.removeStatements(s, p, o, contexts);
conn.removeStatements(s, p, o, contexts);
conn.removeStatements(s, p, o, contexts);
@Override public void handleStatement(final Statement stmt) throws RDFHandlerException { final Resource[] c = (Resource[]) (stmt.getContext() == null ? defaultContext : new Resource[] { stmt.getContext() }); try { conn.removeStatements(// stmt.getSubject(), // stmt.getPredicate(), // stmt.getObject(), // c ); } catch (SailException e) { throw new RDFHandlerException(e); } if (c.length >= 2) { // removed from more than one context nmodified.addAndGet(c.length); } else { nmodified.incrementAndGet(); } }
@Override public void handleStatement(final Statement stmt) throws RDFHandlerException { final Resource[] c = (Resource[]) (stmt.getContext() == null ? defaultContext : new Resource[] { stmt.getContext() }); try { conn.removeStatements(// stmt.getSubject(), // stmt.getPredicate(), // stmt.getObject(), // c ); } catch (SailException e) { throw new RDFHandlerException(e); } if (c.length >= 2) { // removed from more than one context nmodified.addAndGet(c.length); } else { nmodified.incrementAndGet(); } }
private void doRemoveStatement(final Statement stmt) throws SailException { final Resource[] c = (Resource[]) (stmt.getContext() == null ? defaultContext : new Resource[] { stmt.getContext() }); conn.removeStatements(// stmt.getSubject(), // stmt.getPredicate(), // stmt.getObject(), // c); if (c.length >= 2) { // removed from more than one context nmodified.addAndGet(c.length); } else { nmodified.incrementAndGet(); } }
/** * Note: The CONTEXT is ignored when in statementIdentifier mode! */ public synchronized int removeStatements(final ISPO[] stmts) throws SailException { return removeStatements(stmts, stmts.length); }
/** * Note: The CONTEXT is ignored when in statementIdentifier mode! */ public synchronized int removeStatements(final ISPO[] stmts) throws SailException { return removeStatements(stmts, stmts.length); }