public int removeTriples(int subj, int pred, int obj, int context) throws IOException { RecordIterator iter = getTriples(subj, pred, obj, context, 0, 0); return removeTriples(iter); }
public int removeTriples(int subj, int pred, int obj, int context) throws IOException { RecordIterator iter = getTriples(subj, pred, obj, context, 0, 0); return removeTriples(iter); }
/** * @param subj * The subject for the pattern, or <tt>-1</tt> for a wildcard. * @param pred * The predicate for the pattern, or <tt>-1</tt> for a wildcard. * @param obj * The object for the pattern, or <tt>-1</tt> for a wildcard. * @param context * The context for the pattern, or <tt>-1</tt> for a wildcard. * @param explicit * Flag indicating whether explicit or inferred statements should be removed; <tt>true</tt> removes * explicit statements that match the pattern, <tt>false</tt> removes inferred statements that * match the pattern. * @return The number of triples that were removed. * @throws IOException */ public int removeTriples(int subj, int pred, int obj, int context, boolean explicit) throws IOException { byte flags = explicit ? EXPLICIT_FLAG : 0; RecordIterator iter = getTriples(subj, pred, obj, context, flags, EXPLICIT_FLAG); return removeTriples(iter); }
/** * @param subj * The subject for the pattern, or <tt>-1</tt> for a wildcard. * @param pred * The predicate for the pattern, or <tt>-1</tt> for a wildcard. * @param obj * The object for the pattern, or <tt>-1</tt> for a wildcard. * @param context * The context for the pattern, or <tt>-1</tt> for a wildcard. * @param explicit * Flag indicating whether explicit or inferred statements should be removed; <tt>true</tt> removes * explicit statements that match the pattern, <tt>false</tt> removes inferred statements that * match the pattern. * @return The number of triples that were removed. * @throws IOException */ public int removeTriples(int subj, int pred, int obj, int context, boolean explicit) throws IOException { byte flags = explicit ? EXPLICIT_FLAG : 0; RecordIterator iter = getTriples(subj, pred, obj, context, flags, EXPLICIT_FLAG); return removeTriples(iter); }
int contextID = contextIDList.get(i); removeCount += tripleStore.removeTriples(subjID, predID, objID, contextID, explicit);
int contextID = contextIDList.get(i); removeCount += tripleStore.removeTriples(subjID, predID, objID, contextID, explicit);