You are an expert at summarizing long articles. Proceed to summarize the following text: 
oil prices rose wednesday but trimmed earlier gains as traders focussed on weak us crude inventories and a fresh outbreak of violence in key producer nigeria .
oil prices gain on us energy report