title: How to search a RDF object with Apache Jena?
body: <p>My program as the following reads an external RDF file. </p>
  
  <pre><code>    Model model = ModelFactory.createDefaultModel();
      InputStream in = FileManager.get().open(fileName);
      model.read(in, "RDF/XML");
  
      NodeIterator iter = model.listObjects();
      while (iter.hasNext()) {
          System.out.println(" " + iter.next().toString());
      }
  </code></pre>
  
  <p>What I want to implement further is...</p>
  
  <ol>
  <li>return whether there is a RDF object whose <code>rdf:resource</code> is "<a href="http://dbpedia.org/resource/Coconut" rel="nofollow">http://dbpedia.org/resource/Coconut</a>" (In this case, return <code>true</code>)</li>
  <li>Extract the value of <code>rdf:about</code> (In this case, return <code>../descriptor/14066-0</code>)</li>
  </ol>
  
  <p><em>Example RDF</em></p>
  
  <pre class="lang-xml prettyprint-override"><code>  &lt;rdf:Description rdf:about="../descriptor/14066-0"&gt;
      &lt;skos:closeMatch rdf:resource="http://dbpedia.org/resource/Coconut"/&gt;
    &lt;/rdf:Description&gt;
  </code></pre>
  
  <p>Which methods can I use?</p>