Here's what I find interesting: the fact that for the straight wire alone, Biot-Savart must be used, while for the SAME straight wire as part of a complete circuit ampere's law can be used.
This aspect of Ampere's law is I believe not generally well taught. Typically, texts speak of a "long wire", often without even explaining why the wire should be long. Then, in a case like this where the wire is NOT long, folks can understandably be made nervous as to whether ampere can really be applied.
Take the case of a square of wire, side 2R, carrying current I. A perfectly realizable circuit. Now we (fallaciously) isolate one side of the square and apply ampere's law to a circular path, radius R, the circle's center at the center of the side, letting the current in the other 3 sides = 0. This computes to a uniform H field = I/2πR including at the square's center. Now we do the same for the other 3 sides, one at a time, each also giving H = I/2πR. Then we argue superposition and compute the H field at the center of the square = 2I/πR. Wrong answer! Ampere's law is inapplicable because each isolated segment of wire is not part of a complete circuit, so no realizable current could pass thru a closed contour as all the textbooks show, and even though the four segments together do form a closed circuit.
(On the other hand, ∫H.dl = I is correct for any segment providing all the other segments are also carrying I, in which case the symmetry of H around each loop is totally distorted, making computing H at the square's center impossible. )
I have seen several posters get fooled by this approach, myself included for a while. I finally decided that the approach is invalid since at no time do we deal with an actual closed circuit when evaluating the integral. In the OP's case it is valid for the complete semicircular circuit since the circuit is indeed closed, while the isolated wire is by definition not part of a closed circuit but just an artifice, an unrealizable concept. But this is an obvious ad hoc conclusion, not justified analytically, at least not for me.
What is even weirder to me is when I try to explain this by tracing ampere's law back to Maxwell's ∇ x H = j where j is current density. We then appeal to Stokes to get
∫∫(∇xH).dA = ∫H.dl = ∫∫j.dA = I.
Why does this sequence of arguments apply to the closed semicircular loop's straight wire but not to the isolated one? I guess the answer is the same as before: it applies only to realizable configurations, i.e. closed circuits since otherwise no current can be produced. But still it seems a bit of a copout. Isolated wires are often used as examples in texts. E.g. H. H. Skilling in his Fundamentals of Electric Waves uses it to exemplify computing a magnetic vector potential for a short wire. And an isolated wire is used as part of the solution to the OP's problem. So how does Biot-Savart apply to an impossible isolated current segment while ampere doesn't? Yet it's obvious that a B field around a very short wire would be lower than if the wire were long, carrying the same current.
@TSny - any help/comments appreciated.
@Tanya, sorry I know this doesn't address your concern. TSny can do that better than I or for that matter probably anyone else, so bear with him!