### Question:
DBpediaPropertyBlackList implements BlackList { @Override public boolean contains(Resource resource){ return contains(resource.getURI()); } DBpediaPropertyBlackList(); @Override boolean contains(Resource resource); @Override boolean contains(String uri); static boolean onlyOntologyNamespace; }### Answer:
@Test public void testContains() throws Exception { Assert.assertTrue(blackList.contains("http: Assert.assertFalse(blackList.contains("http: }
@Test public void testContains1() throws Exception { Assert.assertTrue(blackList.contains(ResourceFactory.createResource("http: Assert.assertFalse(blackList.contains(ResourceFactory.createResource("http: }