@Override public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(annotations)); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLDataPropertyRangeAxiom(getProperty(), getRange()); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLDataAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(InternalizedEntities.OWL_THING, sup, NO_ANNOTATIONS); } }
public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLDataPropertyRangeAxiom(getProperty(), getRange(), mergeAnnos(annotations)); }
public OWLDataPropertyRangeAxiom getOWLDataPropertyRangeAxiom(OWLDataPropertyExpression propery, OWLDataRange owlDataRange, Set<? extends OWLAnnotation> annotations) { return new OWLDataPropertyRangeAxiomImpl(this, propery, owlDataRange, annotations); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLDataFactory df = getOWLDataFactory(); OWLClassExpression sup = df.getOWLDataAllValuesFrom(getProperty(), getRange()); return df.getOWLSubClassOfAxiom(df.getOWLThing(), sup); } }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLDataAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(InternalizedEntities.OWL_THING, sup, NO_ANNOTATIONS); } }
@Nonnull @Override public OWLDataPropertyRangeAxiom getOWLDataPropertyRangeAxiom( OWLDataPropertyExpression property, OWLDataRange owlDataRange, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(owlDataRange, "owlDataRange cannot be null"); checkAnnotations(annotations); return new OWLDataPropertyRangeAxiomImpl(property, owlDataRange, annotations); }
@Override public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(annotations)); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLDataAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }
@Override public OWLDataPropertyRangeAxiom getOWLDataPropertyRangeAxiom( OWLDataPropertyExpression property, OWLDataRange owlDataRange, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(owlDataRange, OWL_DATA_RANGE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyRangeAxiomImpl(property, owlDataRange, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(anns)); }
@Override public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLDataAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); }
@Override public OWLDataPropertyRangeAxiom getOWLDataPropertyRangeAxiom( OWLDataPropertyExpression property, OWLDataRange owlDataRange, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(owlDataRange, OWL_DATA_RANGE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyRangeAxiomImpl(property, owlDataRange, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLDataAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(InternalizedEntities.OWL_THING, sup, NO_ANNOTATIONS); } }