I have a Map<String, HashSet<String> >
of Names and unique alpha-numeric values correponding to specific entities to which those names could refer, let's call these entry items "IDs".
So for instance, Fyodor Mikhailovich Dostoyevsky
would perhaps be related to the ID Q626
, because that's a very specific reference, there aren't many widely known figures with that name. Whereas, Bush
might be attached to G027
, Q290
, and Q118
, referencing perhaps the man, the beer, and the shrub, in no particular order.
It looks like this:
[Hudson=[Q2672022, Q2915369, Q1181990, Q579848, Q5904041, Q943853, Q76039], Jon S. Corzine=[Q380570], Jon Corzine=[Q380570]]
Is there a preferable way to output this data structure so as to facilitate easy future manipulation. For instance I was just going to print it, with a print writer, but maybe there's a better way of doing this, or a more desirable format that I don't know about. So I'm posing this question.