/** * create a Statement from the triple _t_ in the enhanced graph _eg_. The * Statement has subject, predicate, and object corresponding to those of * _t_. */ public static Statement toStatement( Triple t, ModelCom eg ) { Resource s = new ResourceImpl( t.getSubject(), eg ); Property p = new PropertyImpl( t.getPredicate(), eg ); RDFNode o = createObject( t.getObject(), eg ); return new StatementImpl( s, p, o, eg ); }