private void load() throws RepositoryException, RDFParseException, IOException {
  final RepositoryConnection conn=repository.getConnection();
  String ttlString=MODEL_TTL;
  InputStream stringInput=new ByteArrayInputStream(ttlString.getBytes());
  conn.add(stringInput,"http://dragon-research.com/cham/model/model1",RDFFormat.TURTLE,new Resource[]{});
  ttlString=BUCKET_TTL;
  stringInput=new ByteArrayInputStream(ttlString.getBytes());
  conn.add(stringInput,"http://dragon-research.com/cham/bucket/bucket1",RDFFormat.TURTLE,new Resource[]{});
  conn.commit();
  conn.close();
}

private void load ( ) throws RepositoryException , RDFParseException , IOException { final RepositoryConnection conn = repository . getConnection ( ) ; String ttlString = MODEL_TTL ; InputStream stringInput = new ByteArrayInputStream ( ttlString . getBytes ( ) ) ; conn . add ( stringInput , "http://dragon-research.com/cham/model/model1" , RDFFormat . TURTLE , new Resource [ ] { } ) ; ttlString = BUCKET_TTL ; stringInput = new ByteArrayInputStream ( ttlString . getBytes ( ) ) ; conn . add ( stringInput , "http://dragon-research.com/cham/bucket/bucket1" , RDFFormat . TURTLE , new Resource [ ] { } ) ; conn . commit ( ) ; conn . close ( ) ; }
load the t - box and a - box turtle from strings defined within this class .
