APISonar


org.apache.jena.riot.RDFLanguages.CSV

> org > apache > jena > riot > RDFLanguages > CSV
org APIs apache APIs jena APIs riot APIs RDFLanguages APIs CSV APIs

Example 1
public void RDFDataMgrReadTest() {
		Model m1 = RDFDataMgr.loadModel(FILE_NAME, RDFLanguages.CSV);
		Model m2 = ModelFactory.createDefaultModel();
		m2.read(FILE_NAME, "CSV");
		assertEquals(12, m1.size());
		assertTrue(m1.isIsomorphicWith(m2));
	}
Example 2
private void assertIsomorphicWith(String[] s1, String[] s2){
		Model m1 = parseToModel(s1, RDFLanguages.CSV);
		Model m2 = parseToModel(s2, RDFLanguages.TURTLE);
		assertTrue(m1.isIsomorphicWith(m2));
	}