title: jena api get range of ObjectProperty
body: <p>I've and OWL file and I can explore it and navigate through classes and properties but I can't retrieve correct range of ObjectProperty.
  This is part of my OWL file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;owl:ObjectProperty rdf:about="&amp;aat;aat2209_located_in"&gt;
          &lt;rdfs:label xml:lang="en"&gt;located in&lt;/rdfs:label&gt;
          &lt;rdfs:label xml:lang="it"&gt;si trova in&lt;/rdfs:label&gt;
          &lt;rdfs:comment xml:lang="en"&gt;The property defines a relationship between places or places and things&lt;/rdfs:comment&gt;
          &lt;rdfs:comment xml:lang="it"&gt;La proprietà definisce la relazione tra luoghi o tra luoghi e cose&lt;/rdfs:comment&gt;
          &lt;rdfs:domain&gt;
              &lt;owl:Class&gt;
                  &lt;owl:unionOf rdf:parseType="Collection"&gt;
                      &lt;rdf:Description rdf:about="&amp;dbpedia-owl;Artwork"/&gt;
                      &lt;rdf:Description rdf:about="&amp;dbpedia-owl;Cave"/&gt;
                  &lt;/owl:unionOf&gt;
              &lt;/owl:Class&gt;
          &lt;/rdfs:domain&gt;
          &lt;rdfs:range&gt;
              &lt;owl:Class&gt;
                  &lt;owl:unionOf rdf:parseType="Collection"&gt;
                      &lt;rdf:Description rdf:about="&amp;lodmt;ArchaeologicalSite"/&gt;
                      &lt;rdf:Description rdf:about="&amp;dbpedia-owl;Building"/&gt;
                  &lt;/owl:unionOf&gt;
              &lt;/owl:Class&gt;
          &lt;/rdfs:range&gt;
      &lt;/owl:ObjectProperty&gt;
  </code></pre>
  
  <p>And this is part of my code to explore OWL file</p>
  
  <pre class="lang-java prettyprint-override"><code>...    
  OntModel inf = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF);
              InputStream in =getClass().getResourceAsStream("/"+DATA_IRI);
              inf.read(in, "");
              OntClass obj = inf.getOntClass(uri);
              ExtendedIterator&lt;OntProperty&gt; propIter = obj.listDeclaredProperties(false);
              if(propIter.hasNext()){
                  while (propIter.hasNext()) {
                      Set&lt;PropertyModel&gt; properties = new HashSet&lt;PropertyModel&gt;();
                      final OntProperty ontProperty = (OntProperty) propIter.next();
                      ExtendedIterator&lt;? extends OntProperty&gt; eqProp = ontProperty.listEquivalentProperties();
                      if(eqProp.hasNext()){
                          while (eqProp.hasNext()) {
                              OntProperty property = (OntProperty) eqProp.next();
                              PropertyModel propModel = new PropertyModel();
                              propModel.setLabel(property.getLocalName());
                              propModel.setUri(property.getURI());
                              propModel.setRange(property.getRange().getLocalName());
                              properties.add(propModel);
                          }
                      }
      ...
  </code></pre>
  
  <p>Everytime I call <code>property.getRange()</code> I've this result: <a href="http://www.w3.org/2002/07/owl#Thing" rel="nofollow">http://www.w3.org/2002/07/owl#Thing</a>.</p>
  
  <p>Anyone help me?</p>