I was drawn to this thread because of my fondness for Sherlock Holmes! (For those who aren't Conan Doyle fans - Moriarty was Holmes' archnemisis.) It strikes me funny to have a bobby named Moriarty! (No offense to any other Moriartys out there....
Incredibly I found a tune named Sherlock Holmes in the Scottish Students' Songbook... It must have been writteen shortly after Holmes' perished with the non-bobby Moriarty because the last verse says the Swiss story is a plant! (And Doyle did eventually bring him back)
That's as close as I got. Hope someone else will be able to help!