title: Writing RDF formated strings to sesame repository
body: <p>I can't figure put how to write a couple of RDF N3 formated String ('s) to my sesame repo. I have the following <code>ArrayList&lt;String&gt;</code> that contains for each index a row of the following text(a row ends with an <code>;</code> ):</p>
  
  <pre><code>@prefix gstruct: &lt;http://cs.lth.se/ontologies/gstruct.owl#&gt; .
  @prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
  
  gstruct:sentence_1  rdf:type    gstruct:Sentence ;
      gstruct:inx 1 ;
      gstruct:words
          [gstruct:id 1 ; gstruct:form "The" ; gstruct:lemma "the" ; gstruct:pos "DT" ; gstruct:head "4" ; gstruct:deprel "NMOD"],
          [gstruct:id 2 ; gstruct:form "Series" ; gstruct:lemma "series" ; gstruct:pos "NNP" ; gstruct:head "3" ; gstruct:deprel "NMOD"],
          [gstruct:id 3 ; gstruct:form "800" ; gstruct:lemma "800" ; gstruct:pos "CD" ; gstruct:head "4" ; gstruct:deprel "NMOD"],
          [gstruct:id 4 ; gstruct:form "Terminator" ; gstruct:lemma "terminator" ; gstruct:pos "NNP" ; gstruct:head "5" ; gstruct:deprel "SBJ"],
          [gstruct:id 5 ; gstruct:form "is" ; gstruct:lemma "be" ; gstruct:pos "VBZ" ; gstruct:head "0" ; gstruct:deprel "ROOT"],
          [gstruct:id 6 ; gstruct:form "a" ; gstruct:lemma "a" ; gstruct:pos "DT" ; gstruct:head "7" ; gstruct:deprel "NMOD"],
          [gstruct:id 7 ; gstruct:form "type" ; gstruct:lemma "type" ; gstruct:pos "NN" ; gstruct:head "5" ; gstruct:deprel "PRD"],
          [gstruct:id 8 ; gstruct:form "of" ; gstruct:lemma "of" ; gstruct:pos "IN" ; gstruct:head "7" ; gstruct:deprel "NMOD"],
          [gstruct:id 9 ; gstruct:form "Terminator" ; gstruct:lemma "terminator" ; gstruct:pos "NN" ; gstruct:head "10" ; gstruct:deprel "NMOD"],
          [gstruct:id 10 ; gstruct:form "mass" ; gstruct:lemma "mass" ; gstruct:pos "NN" ; gstruct:head "8" ; gstruct:deprel "PMOD"],
          [gstruct:id 11 ; gstruct:form "produced" ; gstruct:lemma "produce" ; gstruct:pos "VBN" ; gstruct:head "7" ; gstruct:deprel "APPO"],
          [gstruct:id 12 ; gstruct:form "by" ; gstruct:lemma "by" ; gstruct:pos "IN" ; gstruct:head "11" ; gstruct:deprel "LGS"],
          [gstruct:id 13 ; gstruct:form "Skynet" ; gstruct:lemma "skynet" ; gstruct:pos "NNP" ; gstruct:head "12" ; gstruct:deprel "PMOD"],
          [gstruct:id 14 ; gstruct:form "." ; gstruct:lemma "." ; gstruct:pos "." ; gstruct:head "5" ; gstruct:deprel "P"];
      gstruct:predicates
          [gstruct:id 7 ; gstruct:predsense "type.01" ; gstruct:args
              [gstruct:id 7 ;  gstruct:argtype "A2"],
              [gstruct:id 8 ;  gstruct:argtype "A1"]],
          [gstruct:id 10 ; gstruct:predsense "mass.02" ; gstruct:args
              [gstruct:id 9 ;  gstruct:argtype "A1"]],
          [gstruct:id 11 ; gstruct:predsense "produce.01" ; gstruct:args
              [gstruct:id 7 ;  gstruct:argtype "A1"],
              [gstruct:id 12 ;  gstruct:argtype "A0"]].
  </code></pre>
  
  <p>I want to use RepositoryConnection add method to add this and also add a URI and a context in form of a URL. I managed to figure out how to create the URI but i can not manage to figure out what i mentioned above and how to make my URL which is a String to a Resource object.</p>