@Override public SWRLRule getSWRLRule(Collection<? extends SWRLAtom> body, Collection<? extends SWRLAtom> head) { checkIterableNotNull(body, BODY_CANNOT_BE_NULL, true); checkIterableNotNull(head, HEAD_CANNOT_BE_NULL, true); return new SWRLRuleImpl(body, head); }
@Override public SWRLRule getSWRLRule(Collection<? extends SWRLAtom> body, Collection<? extends SWRLAtom> head) { checkIterableNotNull(body, BODY_CANNOT_BE_NULL, true); checkIterableNotNull(head, HEAD_CANNOT_BE_NULL, true); return new SWRLRuleImpl(body, head); }
/** * @param dataRanges data ranges for union. Cannot be null or contain nulls. * @return an OWLDataUnionOf on the specified dataranges */ default OWLDataUnionOf getOWLDataUnionOf(Collection<? extends OWLDataRange> dataRanges) { checkIterableNotNull(dataRanges, "dataRanges cannot be null", true); return getOWLDataUnionOf(dataRanges.stream()); }
/** * @param dataRanges data ranges for intersection. Cannot be null or contain nulls. * @return an OWLDataIntersectionOf on the specified dataranges */ default OWLDataIntersectionOf getOWLDataIntersectionOf( Collection<? extends OWLDataRange> dataRanges) { checkIterableNotNull(dataRanges, "dataRanges cannot be null", true); return getOWLDataIntersectionOf(dataRanges.stream()); }
@Override public SWRLRule getSWRLRule(Collection<? extends SWRLAtom> body, Collection<? extends SWRLAtom> head, Collection<OWLAnnotation> annotations) { checkIterableNotNull(body, BODY_CANNOT_BE_NULL, true); checkIterableNotNull(head, HEAD_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new SWRLRuleImpl(body, head, annotations); }
/** * Gets an OWLDataOneOf <a href= * "http://www.w3.org/TR/2008/WD-owl2-syntax-20081202/#Enumeration_of_Literals" * >(see spec)</a> * * @param values The set of values that the data one of should contain. * @return A data one of that enumerates the specified set of values */ default OWLDataOneOf getOWLDataOneOf(Collection<? extends OWLLiteral> values) { checkIterableNotNull(values, "values cannot be null or contain null or empty", false); return getOWLDataOneOf(values.stream()); }
/** * @param dataRanges data ranges for intersection. Cannot be null or contain nulls. * @return an OWLDataIntersectionOf on the specified dataranges */ default OWLDataIntersectionOf getOWLDataIntersectionOf(OWLDataRange... dataRanges) { checkIterableNotNull(dataRanges, "dataRange cannot be nulls", true); return getOWLDataIntersectionOf(CollectionFactory.createSet(dataRanges)); }
/** * @param individual individual * @return a same individuals axiom with specified individuals */ default OWLSameIndividualAxiom getOWLSameIndividualAxiom(OWLIndividual... individual) { checkIterableNotNull(individual, "individuals cannot be null", true); return getOWLSameIndividualAxiom(createSet(individual)); }
/** * @param operands class expressions for intersection. Cannot be null or contain nulls. * @return an OWLObjectIntersectionOf on the specified operands */ default OWLObjectIntersectionOf getOWLObjectIntersectionOf(OWLClassExpression... operands) { checkIterableNotNull(operands, "operands cannot be null", true); return getOWLObjectIntersectionOf(CollectionFactory.createList(operands)); } }
/** * @param properties Cannot be null or contain nulls. * @return an equivalent data properties axiom */ default OWLEquivalentDataPropertiesAxiom getOWLEquivalentDataPropertiesAxiom(OWLDataPropertyExpression... properties) { checkIterableNotNull(properties, "properties cannot be null", true); return getOWLEquivalentDataPropertiesAxiom(CollectionFactory.createSet(properties)); }
@Override public OWLDisjointDataPropertiesAxiom getOWLDisjointDataPropertiesAxiom( Collection<? extends OWLDataPropertyExpression> properties, Collection<OWLAnnotation> annotations) { checkIterableNotNull(properties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLDisjointDataPropertiesAxiomImpl(properties, annotations); }
@Override public OWLDisjointObjectPropertiesAxiom getOWLDisjointObjectPropertiesAxiom( Collection<? extends OWLObjectPropertyExpression> properties, Collection<OWLAnnotation> annotations) { checkIterableNotNull(properties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLDisjointObjectPropertiesAxiomImpl(properties, annotations); }
@Override public OWLEquivalentClassesAxiom getOWLEquivalentClassesAxiom( Collection<? extends OWLClassExpression> classExpressions, Collection<OWLAnnotation> annotations) { checkIterableNotNull(classExpressions, CLASS_EXPRESSIONS_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLEquivalentClassesAxiomImpl(classExpressions, annotations); }
@Override public OWLEquivalentObjectPropertiesAxiom getOWLEquivalentObjectPropertiesAxiom( Collection<? extends OWLObjectPropertyExpression> properties, Collection<OWLAnnotation> annotations) { checkIterableNotNull(properties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLEquivalentObjectPropertiesAxiomImpl(properties, annotations); }
/** * @param individual individual * @return a same individuals axiom with specified individuals */ default OWLSameIndividualAxiom getOWLSameIndividualAxiom(OWLIndividual... individual) { checkIterableNotNull(individual, "individuals cannot be null", true); return getOWLSameIndividualAxiom(createSet(individual)); }
/** * @param dataProperties Cannot be null or contain nulls. * @return a disjoint data properties axiom with specified properties */ default OWLDisjointDataPropertiesAxiom getOWLDisjointDataPropertiesAxiom( OWLDataPropertyExpression... dataProperties) { checkIterableNotNull(dataProperties, "properties cannot be null", true); return getOWLDisjointDataPropertiesAxiom(CollectionFactory.createSet(dataProperties)); }
@Override public OWLDisjointDataPropertiesAxiom getOWLDisjointDataPropertiesAxiom( Collection<? extends OWLDataPropertyExpression> properties, Collection<OWLAnnotation> annotations) { checkIterableNotNull(properties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLDisjointDataPropertiesAxiomImpl(properties, annotations); }
@Override public OWLEquivalentObjectPropertiesAxiom getOWLEquivalentObjectPropertiesAxiom( Collection<? extends OWLObjectPropertyExpression> properties, Collection<OWLAnnotation> annotations) { checkIterableNotNull(properties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLEquivalentObjectPropertiesAxiomImpl(properties, annotations); }
@Override public OWLHasKeyAxiom getOWLHasKeyAxiom(OWLClassExpression ce, Collection<? extends OWLPropertyExpression> objectProperties, Collection<OWLAnnotation> annotations) { checkNotNull(ce, CLASS_EXPRESSION_CANNOT_BE_NULL); checkIterableNotNull(objectProperties, PROPERTIES_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLHasKeyAxiomImpl(ce, objectProperties, annotations); }
@Override public OWLSubPropertyChainOfAxiom getOWLSubPropertyChainOfAxiom( List<? extends OWLObjectPropertyExpression> chain, OWLObjectPropertyExpression superProperty, Collection<OWLAnnotation> annotations) { checkNotNull(superProperty, SUPER_PROPERTY_CANNOT_BE_NULL); checkIterableNotNull(chain, CHAIN_CANNOT_BE_NULL, true); checkAnnotations(annotations); return new OWLSubPropertyChainAxiomImpl(chain, superProperty, annotations); }