title: SPARQL - Select the most relevant category of a dbpedia resource
body: <p>I've a dbpedia resource and I'd like to obtain all the dbpedia categories associated. For this purpose I wrote this SPARQL query</p>
  
  <pre><code>SELECT ?p ?o WHERE
  {
    &lt;http://dbpedia.org/resource/Rihanna&gt; ?p ?o .
  }
  </code></pre>
  
  <p>focusing only on <a href="http://purl.org/dc/terms/subject" rel="noreferrer">http://purl.org/dc/terms/subject</a> property.</p>
  
  <p>The <a href="http://dbpedia.org/sparql/?default-graph-uri=http%3A%2F%2Fdbpedia.org&amp;query=++++SELECT+%3Fp+%3Fo+%0D%0A++++WHERE%0D%0A++++%7B%0D%0A++++++%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FRihanna%3E+%3Fp+%3Fo+.%0D%0A++++%7D%0D%0A&amp;format=text%2Fhtml&amp;CXML_redir_for_subjs=121&amp;CXML_redir_for_hrefs=&amp;timeout=30000&amp;debug=on" rel="noreferrer">results</a>  I've is a set of categories. Which could be a good manner to select the most relevant category which describes Rihanna singer?</p>