/** * A convenience factory method that creates a new DefinedClassPredicate for the specified set of ontologies. * @param ontologies The ontologies. * @return The DefinedClassPredicate. */ @Nonnull public static Predicate<OWLClass> isDefinedIn(@Nonnull Set<OWLOntology> ontologies) { return new DefinedClassPredicate(ontologies); }
/** * A convenience factory method that creates the negation of a new DefinedClassPredicate for the specified set of ontologies. * @param ontologies The ontologies. * @return The negation of a DefinedClassPredicate. */ public static Predicate<OWLClass> isNotDefinedIn(@Nonnull Set<OWLOntology> ontologies) { return isDefinedIn(ontologies).negate(); } }
getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider(), (sourceSiblings) -> sourceSiblings.stream() .filter(isNotDefinedIn(activeOntologies)) .collect(toSet()), (siblings) -> df.getOWLDisjointClassesAxiom(siblings),
getOWLModelManager().getOWLHierarchyManager().getOWLClassHierarchyProvider(), (sourceSiblings) -> sourceSiblings.stream() .filter(isNotDefinedIn(activeOntologies)) .collect(toSet()), (siblings) -> df.getOWLDisjointClassesAxiom(siblings),
/** * A convenience factory method that creates a new DefinedClassPredicate for the specified set of ontologies. * @param ontologies The ontologies. * @return The DefinedClassPredicate. */ @Nonnull public static Predicate<OWLClass> isDefinedIn(@Nonnull Set<OWLOntology> ontologies) { return new DefinedClassPredicate(ontologies); }
/** * A convenience factory method that creates the negation of a new DefinedClassPredicate for the specified set of ontologies. * @param ontologies The ontologies. * @return The negation of a DefinedClassPredicate. */ public static Predicate<OWLClass> isNotDefinedIn(@Nonnull Set<OWLOntology> ontologies) { return isDefinedIn(ontologies).negate(); } }