First, let's take inexperience. I have written before about President Obama's inexperience. He showed it again when he was asked about the Harvard professor case. Why call the police dept's actions "stupid" when you yourself admitted to not having all the facts in the case. Add that to being a friend of the professor, Obama should have just punted that question. Now he's gotten himself into an avoidable PR mess when he wants people focused on his health care plans. A seasoned politician of the likes of Clinton (male and female) wouldn't have made such an elementary mistake. You don't answer questions like that in such definite terms.
Second, race. Accusing someone of racism simply doesn't end well. Especially if that person is in a position of authority, then it really really doesn't end well. I don't think it's beyond the realm of possibility for a police officer, responding to a burglary, to ask and expect your cooperation. Sure sure you are pissed 'cos it's your house but the most expedient thing to do would have been to cooperate with the officer (even in the face of unreasonable requests) at the scene. And then file an harrassment case with the department. Just because you are the owner of the house doesn't mean there couldn't have been burglars in your house without your knowledge.
In any case, from my thankfully limited dealings with the police and other people in uniforms, I think it's more likely a case of abuse of power than racism.