title: Adding blank nodes to a Jena model
body: <p>I'm trying to populate a Jena ontology model with an existing set of triples, some of which contain blank nodes. I want to maintain these blank nodes inside this new model faithfully but I can't work out a way of adding them into a Jena model.</p>
  
  <p>I have been using: </p>
  
  <pre><code>Statement s = ResourceFactory.createStatement(subject, predicate, object);
  </code></pre>
  
  <p>To add new statements to the model:</p>
  
  <pre><code>private OntModel model = ModelFactory.createOntologyModel();
  model.add(s);
  </code></pre>
  
  <p>but this only allows for certain types as subject, predicate, and object; Resource subject, Property predicate, RDFNode object. None of these types allow for the adding of a blanknode as subject or object such as through:</p>
  
  <pre><code>Node subject =  NodeFactory.createBlankNode(subjectValue);
  </code></pre>
  
  <p>Any suggestions? I've tried just using the blanknodes as resources and creating a Resource object but that breaks everything as they become classes then and not blank nodes. </p>
  
  <p>Any help would be much appreciated, been pulling my hair out with this.</p>