The only direct way I know of would be to give them slightly different names, like "John Williams (composer)" vs "John Williams (guitarist)". But I know that's not ideal, especially if you need compatibility for scrobbling or something.
If you have the Musicbrainz ids, those will be different and you might be able to make use of them in some ways. Maybe you could make a virtual tag to use in place of Artist l