Statements { public static Statement toStatement(Triple triple) { return toStatement(triple, null); }  static void consume(ValueFactory vf, Resource subject, IRI predicate, Value object,
			Consumer<Statement> consumer, Resource... contexts); static C create(ValueFactory vf, Resource subject, IRI predicate,
			Value object, C collection, Resource... contexts); static Statement stripContext(Statement statement); static Statement stripContext(ValueFactory vf, Statement statement); static Triple toTriple(Statement statement); static Triple toTriple(ValueFactory vf, Statement statement); static Statement toStatement(Triple triple); static Statement toStatement(Triple triple, Resource context); static Statement toStatement(ValueFactory vf, Triple triple, Resource context); static boolean isSameTriple(Statement st1, Statement st2); @Experimental static void convertRDFStarToReification(Statement st, Consumer<Statement> consumer); @Experimental static void convertRDFStarToReification(ValueFactory vf, Statement st, Consumer<Statement> consumer); @Experimental static void convertRDFStarToReification(ValueFactory vf, Function<Triple, Resource> reifiedIdMapper,
			Statement st, Consumer<Statement> consumer); @Experimental
	static Function<Triple, Resource> TRIPLE_BNODE_MAPPER; }
@Test public void testToStatement() { Resource context = vf.createIRI("http: Triple t1 = vf.createTriple(vf.createIRI("http: vf.createLiteral("data")); Statement st1 = vf.createStatement(vf.createIRI("http: vf.createLiteral("data")); assertThat(Statements.toStatement(t1)).isEqualTo(st1); }
@Test public void testToStatement_Context() { Resource context = vf.createIRI("http: Triple t1 = vf.createTriple(vf.createIRI("http: vf.createLiteral("data")); Statement st1 = vf.createStatement(vf.createIRI("http: vf.createLiteral("data"), context); assertThat(Statements.toStatement(t1, context)).isEqualTo(st1); }
@Test public void testToStatement_NullContext() { Triple t1 = vf.createTriple(vf.createIRI("http: vf.createLiteral("data")); Statement st1 = vf.createStatement(vf.createIRI("http: vf.createLiteral("data"), null); assertThat(Statements.toStatement(t1, null)).isEqualTo(st1); }