The USS Yosemite was an Oberth class science vessel serving in Starfleet during the 24th century.
By 2370 it Commander J. Swift held the center seat.
On stardate 50893.5 the Yosemite was the nearest vessel to Ivor Prime when a Borg Cube was determined to be heading to the colony. The ship was assigned to aid in the evacuation of the planet, but the mission was aborted when the cube arrived at the planet first. ("First Contact")