Skip to content

Commit

Permalink
save the created rest mapping id with the initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Sep 5, 2022
1 parent f365f83 commit 94eeb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/mappings/mappings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def self.create_rest_mapping(classes,process)
graph_insert << [c.id, RDF::URI.new(rest_predicate), backup_mapping.id]
Goo.sparql_update_client.insert_data(graph_insert, graph: sub.id)
end
mapping = LinkedData::Models::Mapping.new(classes,"REST",process)
mapping = LinkedData::Models::Mapping.new(classes,"REST",process, backup_mapping.id)
return mapping
end

Expand Down

0 comments on commit 94eeb65

Please sign in to comment.