### Question:
NTriplesDataSource extends ColumnarDataSource { public void setAcceptTypes(String types) { this.types.add(types); } NTriplesDataSource(); void setInputFile(String file); void setAcceptTypes(String types); void setReader(Reader reader); void setIncrementalMode(boolean incremental); RecordIterator getRecords(); @Override void writeConfig(ConfigWriter cw);  }### Answer:
@Test public void testTypeFiltering() { source.addColumn(new Column("?uri", "ID", null, null)); source.addColumn(new Column("http: source.setAcceptTypes("http: RecordIterator it = read("<http: "<http: "<http: "<http: "<http: "<http: Record r = it.next(); assertEquals("http: assertEquals("foo", r.getValue("PROP")); assertFalse("e record not filtered out", it.hasNext()); }