@@ -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. as_ref ( ) ) ? {
289- self . store . remove_named_graph ( graphname. as_ref ( ) ) ?;
288+ if overwrite || !self . store . contains_named_graph ( graphname. clone ( ) ) ? {
289+ self . store . remove_named_graph ( graphname. clone ( ) ) ?;
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. as_ref ( ) ) ? {
531- self . store . remove_named_graph ( graphname. as_ref ( ) ) ?;
530+ if overwrite || !self . store . contains_named_graph ( graphname. clone ( ) ) ? {
531+ self . store . remove_named_graph ( graphname. clone ( ) ) ?;
532532 let parser = RdfParser :: from_format ( format. unwrap_or ( RdfFormat :: Turtle ) )
533533 . with_default_graph ( graphname. as_ref ( ) )
534534 . without_named_graphs ( ) ;
@@ -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. as_ref ( ) ) ? {
701- self . store . remove_named_graph ( graphname. as_ref ( ) ) ?;
700+ if overwrite || !self . store . contains_named_graph ( graphname. clone ( ) ) ? {
701+ self . store . remove_named_graph ( graphname. clone ( ) ) ?;
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