PropertiesHandler { public void removeProperties(NamedResource subject, Map<Assertion, Set<Value<?>>> properties) { new EpistemicAxiomRemover(adapter, snapshot).removeAxioms(subject, properties); } PropertiesHandler(OwlapiAdapter adapter, OntologySnapshot snapshot); Collection<Axiom<?>> getProperties(NamedResource subject, boolean includeInferred); void addProperties(NamedResource subject, Map<Assertion, Set<Value<?>>> properties); void removeProperties(NamedResource subject, Map<Assertion, Set<Value<?>>> properties);  }
@Test public void removePropertiesRemovesSpecifiedPropertyValues() { final Assertion assertion = Assertion.createPropertyAssertion(DP_ONE, false); final String value = "Test"; final Map<Assertion, Set<Value<?>>> toRemove = Collections .singletonMap(assertion, Collections.singleton(new Value<>(value))); manager.applyChange(new AddAxiom(ontology, dataFactory .getOWLDataPropertyAssertionAxiom(dataFactory.getOWLDataProperty(DP_ONE.toString()), dataFactory.getOWLNamedIndividual(PK.toString()), value))); propertiesHandler.removeProperties(INDIVIDUAL, toRemove); assertTrue(ontology.dataPropertyAssertionAxioms(dataFactory.getOWLNamedIndividual(PK.toString())) .collect(Collectors.toSet()).isEmpty()); }