private void compare(InputStream in, String filen) throws IOException { Model m1 = this.createMemModel(); Model m2 = this.createMemModel(); m1.read(in,"","N-TRIPLES"); m2.read(new FileInputStream(filen),"","N-TRIPLES"); boolean isomorphicWith = m1.isIsomorphicWith(m2); if (!isomorphicWith) { System.err.println("Found Triples:"); System.err.println("==="); m1.write(System.err,"N-TRIPLES"); System.err.println("==="); System.err.println("Expected Triples:"); System.err.println("==="); m2.write(System.err,"N-TRIPLES"); System.err.println("==="); } assertTrue("Triples were not as expected.",isomorphicWith); }
private void compare(InputStream in, String filen) throws IOException { Model m1 = this.createMemModel(); Model m2 = this.createMemModel(); m1.read(in,"","N-TRIPLES"); m2.read(new FileInputStream(filen),"","N-TRIPLES"); boolean isomorphicWith = m1.isIsomorphicWith(m2); if (!isomorphicWith) { System.err.println("Found Triples:"); System.err.println("==="); m1.write(System.err,"N-TRIPLES"); System.err.println("==="); System.err.println("Expected Triples:"); System.err.println("==="); m2.write(System.err,"N-TRIPLES"); System.err.println("==="); } assertTrue("Triples were not as expected.",isomorphicWith); }