@Override public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLObjectPropertyAssertionAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }
@Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(individual, INDIVIDUAL_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyAssertionAxiomImpl(individual, property, object, annotations); }
@Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(individual, INDIVIDUAL_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyAssertionAxiomImpl(individual, property, object, annotations); }
@Override public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(individual, INDIVIDUAL_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyAssertionAxiomImpl(individual, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom(OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(individual, "individual"); checkNull(object, "object"); checkNull(annotations, ANNOTATIONS, true); return new OWLObjectPropertyAssertionAxiomImpl(individual, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(individual, INDIVIDUAL_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLObjectPropertyAssertionAxiomImpl(individual, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override public OWLObjectPropertyAssertionAxiom getSimplified() { if (!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return new OWLObjectPropertyAssertionAxiomImpl(getObject(), invProp, getSubject(), NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyAssertionAxiom getSimplified() { if (!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return new OWLObjectPropertyAssertionAxiomImpl(getObject(), invProp, getSubject(), NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyAssertionAxiom getSimplified() { if (!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return new OWLObjectPropertyAssertionAxiomImpl(getObject(), invProp, getSubject(), NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyAssertionAxiom getSimplified() { if (!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return new OWLObjectPropertyAssertionAxiomImpl(getObject(), invProp, getSubject(), NO_ANNOTATIONS); } }
@Override public OWLObjectPropertyAssertionAxiom getSimplified() { if (!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), invProp, getObject(), NO_ANNOTATIONS); } }