title: Read RDF:foaf file with Apache Jena
body: <p>I have a problem with reading RDF file, which is using foaf tags. I would like to read it with Apache Jena. Below is the snippet of the RDF file.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;rdf:RDF xmlns="http://test.example.com/"     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"     xmlns:foaf="http://xmlns.com/foaf/0.1/"&gt;
  &lt;foaf:Person rdf:about="http://test.example.com/MainPerson.rdf"&gt;
  &lt;foaf:firstName&gt;John&lt;/foaf:firstName&gt;
  &lt;foaf:lastName&gt;Doe&lt;/foaf:lastName&gt;
  &lt;foaf:nick&gt;Doe&lt;/foaf:nick&gt;
  &lt;foaf:gender&gt;Male&lt;/foaf:gender&gt;
  &lt;foaf:based_near&gt;Honolulu&lt;/foaf:based_near&gt;
  &lt;foaf:birthday&gt;08-14-1990&lt;/foaf:birthday&gt;
  &lt;foaf:mbox&gt;john@example.com&lt;/foaf:mbox&gt;
  &lt;foaf:homepage rdf:resource="http://www.example.com"/&gt;
  &lt;foaf:img rdf:resource="http://weknowmemes.com/wp-content/uploads/2013/09/wat-meme.jpg"/&gt;
  &lt;foaf:made&gt;
  Article: Developing applications in Java
  &lt;/foaf:made&gt;
  &lt;foaf:age&gt;24&lt;/foaf:age&gt;
  &lt;foaf:interest&gt;
  Java, Java EE (web tier), PrimeFaces, MySQL, PHP, OpenCart, Joomla,   Prestashop, CSS3, HTML5
  &lt;/foaf:interest&gt;
  &lt;foaf:pastProject rdf:resource="http://www.supercombe.si"/&gt;
  &lt;foaf:status&gt;Student&lt;/foaf:status&gt;
  &lt;foaf:geekcode&gt;M+, L++&lt;/foaf:geekcode&gt;
  &lt;foaf:knows&gt;
  &lt;foaf:Person&gt;
  &lt;rdfs:seeAlso rdf:resource="http://test.example.com/Person.rdf"/&gt;
  &lt;/foaf:Person&gt;
  &lt;/foaf:knows&gt;
  &lt;foaf:knows&gt;
  &lt;foaf:Person&gt;
  &lt;rdfs:seeAlso rdf:resource="http://test.example.com/Person2.rdf"/&gt;
  &lt;/foaf:Person&gt;
  &lt;/foaf:knows&gt;
  &lt;foaf:knows&gt;
  &lt;foaf:Person&gt;
  &lt;rdfs:seeAlso rdf:resource="http://test.example.com/Person3.rdf"/&gt;
  &lt;/foaf:Person&gt;
  &lt;/foaf:knows&gt;
  &lt;/foaf:Person&gt;
  &lt;/rdf:RDF&gt;
  </code></pre>
  
  <p>I just don't understand how to read this data with Apache Jena in regular POJO object. Any help will be appreciated (couldn't find tutorial on the web for this kind of parsing).</p>