|
|
@ -134,12 +134,14 @@ impl<'a> SimpleUpdateEvaluator<'a> { |
|
|
|
Self::convert_ground_quad_pattern(quad, &variables, &tuple, &dataset)? |
|
|
|
Self::convert_ground_quad_pattern(quad, &variables, &tuple, &dataset)? |
|
|
|
{ |
|
|
|
{ |
|
|
|
self.storage.remove(quad.as_ref())?; |
|
|
|
self.storage.remove(quad.as_ref())?; |
|
|
|
|
|
|
|
if !insert.is_empty() { |
|
|
|
// Hack to make sure the triple terms are still available for an insert
|
|
|
|
// Hack to make sure the triple terms are still available for an insert
|
|
|
|
dataset.encode_term(quad.subject.as_ref()); |
|
|
|
dataset.encode_term(quad.subject.as_ref()); |
|
|
|
dataset.encode_term(quad.predicate.as_ref()); |
|
|
|
dataset.encode_term(quad.predicate.as_ref()); |
|
|
|
dataset.encode_term(quad.object.as_ref()); |
|
|
|
dataset.encode_term(quad.object.as_ref()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
for quad in insert { |
|
|
|
for quad in insert { |
|
|
|
if let Some(quad) = |
|
|
|
if let Some(quad) = |
|
|
|
Self::convert_quad_pattern(quad, &variables, &tuple, &dataset, &mut bnodes)? |
|
|
|
Self::convert_quad_pattern(quad, &variables, &tuple, &dataset, &mut bnodes)? |
|
|
|