title: The most specific rdf type of a DBpedia resource
body: <p>I was wondering how DPpedia decides which rdf:type to put in the header of each resource page:
  <a href="https://i.stack.imgur.com/oD753.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oD753.png" alt="enter image description here" /></a></p>
  <p>I tried computing the most &quot;specific&quot; category by selecting the resource category that contains the fewest members total as suggested <a href="https://stackoverflow.com/questions/39040060/sparql-select-the-most-relevant-category-of-a-dbpedia-resource">here</a>. But it is not a reliable heuristic, at least not for this purpose. Any suggestions how to query this entity type appreciated.</p>