private void delete$(Quad quad) {
   super.delete(quad);
   record(
       QuadAction.DELETE,
       quad.getGraph(),
       quad.getSubject(),
       quad.getPredicate(),
       quad.getObject());
 }
 @Override
 public void delete(Quad quad) {
   if (CheckFirst && !contains(quad)) {
     if (RecordNoAction)
       record(
           QuadAction.NO_DELETE,
           quad.getGraph(),
           quad.getSubject(),
           quad.getPredicate(),
           quad.getObject());
     return;
   }
   delete$(quad);
 }
 @Override
 public void add(Quad quad) {
   if (CheckFirst && contains(quad)) {
     if (RecordNoAction)
       record(
           QuadAction.NO_ADD,
           quad.getGraph(),
           quad.getSubject(),
           quad.getPredicate(),
           quad.getObject());
     return;
   }
   add$(quad);
 }
 private void add$(Quad quad) {
   super.add(quad);
   record(
       QuadAction.ADD, quad.getGraph(), quad.getSubject(), quad.getPredicate(), quad.getObject());
 }
Exemplo n.º 5
0
 public static void addVarsFromQuad(Collection<Var> acc, Quad q) {
   addVar(acc, q.getSubject());
   addVar(acc, q.getPredicate());
   addVar(acc, q.getObject());
   addVar(acc, q.getGraph());
 }