This is described as an Afro-American Cane-Hop and sounds like a real piece of old time music. I would guess that O'Hare used a few traditional old time tunes in his composition (one or two of the phrases sound familiar). It's an early composition and suits the banjo well.
It was recorded by the Sousa band in 1902, see the following link;
https://www.loc.gov/item/jukebox.5668/
The score and midi are in the library..Steve.
.