title: get wikipedia parent category of category
body: <p>I am using wikimedia api and I need to get a parent category of category (e.g 'Mammals by common name' is parent category for category 'dogs'. But still I can't find out good solution. I was thinging abouth sth like</p>
  
  <pre><code>http://en.wikipedia.org/w/api.php?action=query&amp;titles=dogs&amp;prop=categories&amp;clcategories=Category:Mammals%20by%20common%20name
  </code></pre>
  
  <p>but dogs is category not page so the output is like if 'Mammals by common name' wasnt parent category.</p>