loadTestData("/testdata-query/dataset-ses1692.trig"); StringBuilder query = new StringBuilder(); query.append(" PREFIX : <http://example.org/>\n"); assertNotNull(result); assertTrue(result.hasNext()); System.out.println(bs); URI a = (URI)bs.getValue("a"); assertNotNull(a); Value isX = bs.getValue("isX"); Literal name = (Literal)bs.getValue("name"); assertNotNull(name); if (a.stringValue().endsWith("a1")) { assertNotNull(isX); assertNull(isX); assertEquals(1, count);
/** * Overridden to destroy the backend database and its files on the disk. */ @Override public void tearDown() throws Exception { super.tearDown(); if (backend != null) tearDownBackend(backend); /* * Note: this field MUST be cleared to null or the backing database * instance will be held by a hard reference throughout the execution of * all unit tests in this test suite! */ backend = null; // clear the value factory reference on the base class. f = null; }
@Override protected Repository newRepository() throws RepositoryException { final Properties props = getProperties();
@Override protected Repository newRepository() throws RepositoryException { final Properties props = getProperties();
loadTestData("/testdata-query/dataset-ses1692.trig"); StringBuilder query = new StringBuilder(); query.append(" PREFIX : <http://example.org/>\n"); assertNotNull(result); assertTrue(result.hasNext()); System.out.println(bs); URI a = (URI)bs.getValue("a"); assertNotNull(a); Value isX = bs.getValue("isX"); Literal name = (Literal)bs.getValue("name"); assertNotNull(name); if (a.stringValue().endsWith("a1")) { assertNotNull(isX); assertNull(isX); assertEquals(1, count);
/** * Overridden to destroy the backend database and its files on the disk. */ @Override public void tearDown() throws Exception { super.tearDown(); if (backend != null) tearDownBackend(backend); /* * Note: this field MUST be cleared to null or the backing database * instance will be held by a hard reference throughout the execution of * all unit tests in this test suite! */ backend = null; // clear the value factory reference on the base class. f = null; }