@Override public OWLObjectPropertyRangeAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(annotations)); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
public OWLObjectPropertyRangeAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLObjectPropertyRangeAxiom(getProperty(), getRange()); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLObjectAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }
public OWLObjectPropertyRangeAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLObjectPropertyRangeAxiom(getProperty(), getRange(), mergeAnnos(annotations)); }
public OWLObjectPropertyRangeAxiom getOWLObjectPropertyRangeAxiom(OWLObjectPropertyExpression property, OWLClassExpression range, Set<? extends OWLAnnotation> annotations) { return new OWLObjectPropertyRangeAxiomImpl(this, property, range, annotations); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLDataFactory df = getOWLDataFactory(); OWLClassExpression sup = df.getOWLObjectAllValuesFrom(getProperty(), getRange()); return df.getOWLSubClassOfAxiom(df.getOWLThing(), sup); } }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLObjectAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }
@Nonnull @Override public OWLObjectPropertyRangeAxiom getOWLObjectPropertyRangeAxiom( OWLObjectPropertyExpression property, OWLClassExpression range, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(range, "range cannot be null"); checkAnnotations(annotations); return new OWLObjectPropertyRangeAxiomImpl(property, range, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(anns)); }
@Override public OWLObjectPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLObjectAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyRangeAxiom getOWLObjectPropertyRangeAxiom( OWLObjectPropertyExpression property, OWLClassExpression range, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(range, RANGE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyRangeAxiomImpl(property, range, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLObjectAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyRangeAxiom getOWLObjectPropertyRangeAxiom( OWLObjectPropertyExpression property, OWLClassExpression range, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(range, RANGE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyRangeAxiomImpl(property, range, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyRangeAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyRangeAxiomImpl(getProperty(), getRange(), NO_ANNOTATIONS); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sup = new OWLObjectAllValuesFromImpl(getProperty(), getRange()); return new OWLSubClassOfAxiomImpl(OWL_THING, sup, NO_ANNOTATIONS); } }