@Override public List<OWLObjectPropertyExpression> getRenderablesForItem(OWLObjectProperty subject, OWLDisjointObjectPropertiesAxiom item, OWLOntology ontology) { return Lists.newArrayList(item.getPropertiesMinus(subject)); }
public List<OWLOntologyChange> getChangesToRemoveDefinition() { List<OWLOntologyChange> changes = new ArrayList<>(); getUnaryAxioms().forEach(ax -> changes.add(new RemoveAxiom(ontology, ax))); ontology.getDisjointObjectPropertiesAxioms(property).forEach(ax -> { changes.add(new RemoveAxiom(ontology, ax)); if(ax.getProperties().size() > 2) { OWLDisjointObjectPropertiesAxiom replacement = dataFactory.getOWLDisjointObjectPropertiesAxiom( ax.getPropertiesMinus(property), ax.getAnnotations() ); changes.add(new RemoveAxiom(ontology, replacement)); } }); return changes; } }
for (OWLDisjointObjectPropertiesAxiom ax : ontology.getDisjointObjectPropertiesAxioms(property)) { if (ax.getProperties().size() == 2 && isDisplayed(ax)) { Set<OWLObjectPropertyExpression> props = ax.getPropertiesMinus(property); properties.put(props.iterator().next(), ax.getAnnotations()); axioms.add(ax);
SectionMap<Object, OWLAxiom> properties = new SectionMap<>(); filtersort(o.disjointObjectPropertiesAxioms(property), props).forEach(ax -> { properties.put(ax.getPropertiesMinus(property).iterator().next(), ax); axioms.add(ax); });
SectionMap<Object, OWLAxiom> properties = new SectionMap<>(); filtersort(o.disjointObjectPropertiesAxioms(property), props).forEach(ax -> { properties.put(ax.getPropertiesMinus(property).iterator().next(), ax); axioms.add(ax); });
SectionMap<Object, OWLAxiom> properties = new SectionMap<>(); filtersort(o.disjointObjectPropertiesAxioms(property), props).forEach(ax -> { properties.put(ax.getPropertiesMinus(property).iterator().next(), ax); axioms.add(ax); });
SectionMap<Object, OWLAxiom> properties = new SectionMap<>(); filtersort(o.disjointObjectPropertiesAxioms(property), props).forEach(ax -> { properties.put(ax.getPropertiesMinus(property).iterator().next(), ax); axioms.add(ax); });
if (ax.getProperties().size() == 2 && isDisplayed(ax)) { Set<OWLObjectPropertyExpression> props = ax .getPropertiesMinus(property); properties.add(props.iterator().next(), ax); axioms.add(ax);