James Hogan Esquire. Esquire-did not find any listed in the James Hogan's in Cork. However, if he was high up in the Army which a bandmaster might be, when Officer's left the Army they often acquire land and rented it out for income. Most of the Hogan's in the 1852 Griffith Valuation are the head tenants and have sub-tenants. These men would be called Gentlemen or Esquires as they didn't work for a living. They are not nobility. Its a common English term. Cannot say for sure if these are your James Hogan, keeping in mind you can only live in 1 house at a time, if you didn't live there you rented/leased it out.
James Hogan, Parish of Holy Trinity, Castle Street, Cork
Poor Law Union of Cork. tenant of William Willis Reps.
(reps seems to be representative at parliament)
8 6 & 5 Castle St. house, outbuildings and yard
James Hogan, Parish of St. Peter, Driscolls Alley (off Little Cross St) tenant of Laurence Connor
3/5 sheds and yard
James Hogan, St. Paul's Parish, Rag Lane off Corn Market St.
tenant of the Trustees Brettridge's charity
3/11 stores dilapidated
James Hogan, White Church Parish, Carhoo townland, tenant of Chas. Connell
2a house, outbuildings and land 49.0.39
James Hogen, Ballydeloher, Village of Brooklodge Upper
tenant of Jonas Morris
Lots of Shawn's also who were in the following Parish's
2 x Robert Bernard Shaw, Monstown
2 x Bernard Shaw Monkstown & Holy Trinity
3 x John M. Shaw Holy Trinity
3 x William Shaw, Holy Trinity, St. Anne Shandon, St. Nicholas, and Whitechurch
John Shaw, St. Mary Shandon
Edward, St. Nicolas
Robert, St. Anne Shandon
Directories of Ireland. Cork
James A. Shaw residing 3 Temple place, Cork
John M.Shaw Ropemaker 196 Blarney Lanewww.familysearch.org
has the microfilm for the marriage but the Church isn't listed. Oddly they have two records
1)Mary Ann 2) Mary Agnes with the same microfilm numbers
which match John Shaw 101251/004179384
I imagine you have done the history on the 47th. of Foot formed 1741 in Scotland, name change 1881 to Loyal North Lancashire Regiment.
Served in North American, Nova Scotia, Quebec, 7 year war, American War of Independance, Napoleonic & Crimeans Wars.
You can probably get his BA records and retirment through the National Archives in Kew, England. They have contracted out the records to a pay per view website - link is on the NA.
A good website/message for Military Genealogy Ireland is the called MILGENIRE, you can google.
I don't see John Shaw or Mary Anne Shaw in the 1901 Census
there are a couple of John Shaw's born in England but not Sheffield or the right age.