private static List<InferredAxiomGenerator<? extends OWLAxiom>> generators() { return CollectionFactory.<InferredAxiomGenerator<? extends OWLAxiom>>list( new InferredClassAssertionAxiomGenerator(), new InferredDataPropertyCharacteristicAxiomGenerator(), new InferredEquivalentClassAxiomGenerator(), new InferredEquivalentDataPropertiesAxiomGenerator(), new InferredEquivalentObjectPropertyAxiomGenerator(), new InferredInverseObjectPropertiesAxiomGenerator(), new InferredObjectPropertyCharacteristicAxiomGenerator(), new InferredPropertyAssertionGenerator(), new InferredSubClassAxiomGenerator(), new InferredSubDataPropertyAxiomGenerator(), new InferredSubObjectPropertyAxiomGenerator()); }
/** * @param walkDuplicates true if duplicates should be visited * @param objects objects to visit * @param walkFlag control which annotations to visit */ public OWLObjectWalker(Stream<O> objects, boolean walkDuplicates, AnnotationWalkingControl walkFlag) { this.objects = asList(checkNotNull(objects, "objects cannot be null")); this.visitDuplicates = walkDuplicates; this.walker = new StructureWalker<>(this, walkFlag); }
/** * @param values values for oneof */ public OWLObjectOneOfImpl(Stream<OWLIndividual> values) { checkNotNull(values, "values cannot be null"); this.values = sorted(OWLIndividual.class, values); }
/** * Creates an entity remover, which will remove entities (axioms referring * to the entities from the specified ontologies). * * @param ontologies The stream of ontologies that contain references to axioms to be removed. */ public OWLEntityRemover(Stream<OWLOntology> ontologies) { this.ontologies = asList(checkNotNull(ontologies, "ontologies cannot be null")); }
/** * @param entities the entities to add */ public DefaultNode(Stream<E> entities) { OWLAPIStreamUtils.add(this.entities, checkNotNull(entities, "entities cannot be null")); }
/** * @param object the object to duplicate * @param <O> return type * @return the duplicate */ public <O extends OWLObject> O deshareObject(O object) { checkNotNull(object, "object cannot be null"); return get(object); }
@Override public void visit(OWLDatatype node) { walkerCallback.pushDataRange(node); process(node); walkerCallback.popDataRange(); }
/** * @param properties properties * @param annotations annotations */ @SuppressWarnings("unchecked") public OWLNaryPropertyAxiomImpl(Collection<? extends P> properties, Collection<OWLAnnotation> annotations) { super(annotations); checkNotNull(properties, "properties cannot be null"); this.properties = (List<P>) sorted(OWLPropertyExpression.class, properties); }
/** * @param walkDuplicates true if duplicates should be visited * @param objects objects to visit * @param walkFlag control which annotations to visit */ public OWLObjectWalker(Stream<O> objects, boolean walkDuplicates, AnnotationWalkingControl walkFlag) { this.objects = asList(checkNotNull(objects, "objects cannot be null")); this.visitDuplicates = walkDuplicates; this.walker = new StructureWalker<>(this, walkFlag); }
/** * @param properties properties * @param annotations annotations */ @SuppressWarnings("unchecked") public OWLNaryPropertyAxiomImpl(Stream<? extends P> properties, Collection<OWLAnnotation> annotations) { super(annotations); checkNotNull(properties, "properties cannot be null"); this.properties = (List<P>) sorted(OWLPropertyExpression.class, properties); }
/** * @param walkDuplicates true if duplicates should be visited * @param objects objects to visit * @param walkFlag control which annotations to visit */ public OWLObjectWalker(Stream<O> objects, boolean walkDuplicates, AnnotationWalkingControl walkFlag) { this.objects = asList(checkNotNull(objects, "objects cannot be null")); this.visitDuplicates = walkDuplicates; this.walker = new StructureWalker<>(this, walkFlag); }
/** * @param individuals individuals * @param annotations annotations on the axiom */ public OWLNaryIndividualAxiomImpl(Collection<? extends OWLIndividual> individuals, Collection<OWLAnnotation> annotations) { super(annotations); checkNotNull(individuals, "individuals cannot be null"); this.individuals = sorted(OWLIndividual.class, individuals); }
/** * @param classExpressions classes * @param annotations annotations */ public OWLNaryClassAxiomImpl(Collection<? extends OWLClassExpression> classExpressions, Collection<OWLAnnotation> annotations) { super(annotations); checkNotNull(classExpressions, "classExpressions cannot be null"); this.classExpressions = sorted(OWLClassExpression.class, classExpressions); }
/** * @param datatype datatype * @param facetRestrictions facet restriction */ public OWLDatatypeRestrictionImpl(OWLDatatype datatype, Collection<OWLFacetRestriction> facetRestrictions) { this.datatype = checkNotNull(datatype, "datatype cannot be null"); checkNotNull(facetRestrictions, "facetRestrictions cannot be null"); this.facetRestrictions = sorted(OWLFacetRestriction.class, facetRestrictions); }
/** * @param first first property * @param second second peoperty * @param annotations annotations */ public OWLInverseObjectPropertiesAxiomImpl(OWLObjectPropertyExpression first, OWLObjectPropertyExpression second, Collection<OWLAnnotation> annotations) { super(sorted(OWLObjectPropertyExpression.class, checkNotNull(first, "first cannot be null"), checkNotNull(second, "second cannot be null")), annotations); this.first = first; this.second = second; }
/** * @param property annotation property * @param value annotation value * @param annotations annotations on the axiom */ public OWLAnnotationImpl(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { super(property, value); checkNotNull(annotations, "annotations cannot be null"); anns = sorted(OWLAnnotation.class, annotations); }
/** * @param annotations annotations on the axiom */ public OWLAxiomImpl(Collection<OWLAnnotation> annotations) { checkNotNull(annotations, "annotations cannot be null"); this.annotations = sorted(OWLAnnotation.class, annotations); }
/** * @param operands operands */ public OWLNaryBooleanClassExpressionImpl(Stream<OWLClassExpression> operands) { checkNotNull(operands, "operands cannot be null"); this.operands = sorted(OWLClassExpression.class, operands); }
/** * @param values lierals */ public OWLDataOneOfImpl(Stream<? extends OWLLiteral> values) { checkNotNull(values, "values cannot be null"); this.values = sorted(OWLLiteral.class, values); }
/** * @param property annotation property * @param value annotation value * @param annotations annotations on the axiom */ public OWLAnnotationImpl(OWLAnnotationProperty property, OWLAnnotationValue value, Stream<OWLAnnotation> annotations) { super(property, value); checkNotNull(annotations, "annotations cannot be null"); anns = sorted(OWLAnnotation.class, annotations); }