title: Creating the Sesame repository
body: <p>I am quite new to Java Sesame. I have read through the <a href="http://openrdf.callimachus.net/sesame/2.7/docs/users.docbook?view" rel="nofollow">documentation provided for Sesame</a>. Unfortunately lots of things were not very clear to me. I started with creating the repository as in the code below: </p>
  
  <pre><code>import org.openrdf.repository.RepositoryException;
  import org.openrdf.repository.manager.RemoteRepositoryManager;
  import org.openrdf.repository.sail.SailRepository;
  public class RDF{
  
  public void create() throws RepositoryException
  {
      File dataDir = new File("myFile");
      Repository repo = new SailRepository(new MemoryStore(dataDir));
      repo.initialize();
      String serverUrl = "http://localhost:8080/openrdf-sesame/repositories/rep";
      RemoteRepositoryManager manager = new RemoteRepositoryManager(serverUrl);
      manager.initialize();
      }
  }
  </code></pre>
  
  <p>I am using <code>Tomcat 6</code>. I run the code in <code>Eclipse</code>. I right click the Dynamic Project and select <code>Run on server</code>. The codes were taken from the documentation itself. My questions are what is creating the file <code>dataDir</code> for? </p>
  
  <p>Is this address <code>http://localhost:8080/openrdf-sesame/repositories/rep</code> of the location where the repository is created? After starting Tomcat, I use the above link but it shows me there is an error. </p>
  
  <p>How can I make sure that the repository has successfully been created and how can I start to use it. Your assistance would be very much appreciated. </p>