@@ -285,8 +285,8 @@ impl GraphIO for PersistentGraphIO {
285285 let graphname: GraphName = id. graphname ( ) ?;
286286
287287 // 3. Load from bytes using bulk loader
288- if overwrite || !self . store . contains_named_graph ( graphname . clone ( ) ) ? {
289- self . store . remove_named_graph ( graphname . clone ( ) ) ?;
288+ if overwrite || !self . store . contains_named_graph ( id . name ( ) ) ? {
289+ self . store . remove_named_graph ( id . name ( ) ) ?;
290290 let parser = RdfParser :: from_format ( format. unwrap_or ( RdfFormat :: Turtle ) )
291291 . with_default_graph ( graphname. as_ref ( ) )
292292 . without_named_graphs ( ) ;
@@ -527,8 +527,8 @@ impl GraphIO for ExternalStoreGraphIO {
527527 let graphname: GraphName = id. graphname ( ) ?;
528528
529529 // 3. Load from bytes using bulk loader
530- if overwrite || !self . store . contains_named_graph ( graphname . clone ( ) ) ? {
531- self . store . remove_named_graph ( graphname . clone ( ) ) ?;
530+ if overwrite || !self . store . contains_named_graph ( id . name ( ) ) ? {
531+ self . store . remove_named_graph ( id . name ( ) ) ?;
532532 let parser = RdfParser :: from_format ( format. unwrap_or ( RdfFormat :: Turtle ) )
533533 . with_default_graph ( graphname. as_ref ( ) )
534534 . without_named_graphs ( ) ;
@@ -575,7 +575,7 @@ impl MemoryGraphIO {
575575
576576 pub fn add_graph ( & mut self , id : GraphIdentifier , graph : Graph ) -> Result < ( ) > {
577577 let graphname = id. graphname ( ) ?;
578- self . store . remove_named_graph ( graphname . as_ref ( ) ) ?;
578+ self . store . remove_named_graph ( id . name ( ) ) ?;
579579 self . store . bulk_loader ( ) . load_quads ( graph. iter ( ) . map ( |t| {
580580 Quad :: new (
581581 t. subject . clone ( ) ,
@@ -697,8 +697,8 @@ impl GraphIO for MemoryGraphIO {
697697 let graphname: GraphName = id. graphname ( ) ?;
698698
699699 // 3. Load from bytes using bulk loader
700- if overwrite || !self . store . contains_named_graph ( graphname . clone ( ) ) ? {
701- self . store . remove_named_graph ( graphname . clone ( ) ) ?;
700+ if overwrite || !self . store . contains_named_graph ( id . name ( ) ) ? {
701+ self . store . remove_named_graph ( id . name ( ) ) ?;
702702 let parser = RdfParser :: from_format ( format. unwrap_or ( RdfFormat :: Turtle ) )
703703 . with_default_graph ( graphname. as_ref ( ) )
704704 . without_named_graphs ( ) ;
0 commit comments