title: Using OWL API, how to get class or individual name
body: <p>I can get OWLClass and access the information. The classes and individuals are along with prefix.<br>
  Is there any method to get rid of prefix?<br>
  For example:<br></p>
  
  <pre><code>OWLClass cls = factory.getOWLClass(":Person", pm);
  for (OWLIndividual indiv : cls.getIndividuals(onto)) {
      System.out.println(indiv.toString());
  }
  </code></pre>
  
  <p>print:<br>
  <code>&lt;http://www.co-ode.org/ontologies/ont.owl#Mon&gt;</code><br>
  <code>&lt;http://www.co-ode.org/ontologies/ont.owl#Dad&gt;</code><br></p>
  
  <p>What I want is just <code>Mon</code> <code>Dad</code></p>
  
  <p><strong>UPDATE:</strong><br>
  Thank you Ignazio.<br>
  I found that the key is <code>getIRI()</code> method.<br></p>
  
  <pre><code>for (OWLIndividual indiv : owlclass.getIndividuals(onto)) {
      System.out.println(indiv.asOWLNamedIndividual().getIRI().getFragment());
  }
  
  for (OWLClassExpression expre : owlclass.getSubClasses(onto)) {
      System.out.println(expre.asOWLClass().getIRI().getFragment());
  }
  </code></pre>