title: How to read into RDF file N-Turtle format using Jena Java APIs
body: <p>i'm trying to understand how to load firstly, and then read into RDF file in N-Turtle format.
  I'm using Jena Java APIs (<a href="https://jena.apache.org/index.html" rel="nofollow">https://jena.apache.org/index.html</a>).</p>
  
  <p>I'm trying with this Java code:</p>
  
  <pre><code>Model model = ModelFactory.createDefaultModel(); 
  FileInputStream inputStream = null;
  try {
      inputStream = new FileInputStream("path_in_my_pc");
      } catch (FileNotFoundException e) {} 
  </code></pre>
  
  <p>I have to research a word into the RDF file, and print the results that match. </p>
  
  <p>I was thinking to save the RDF N-Turtle into a string, and then, using some String method to find what I need. Is there other method to do this?</p>
  
  <p>It would be also useful understand how to iterate all the RDF file and print the entire document.</p>
  
  <p>Thank you for the help.</p>