@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLAnnotationAssertionAxiom(getProperty(), getSubject(), getValue()); }
public OWLAnnotationAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLAnnotationAssertionAxiom(getProperty(), getSubject(), getValue(), mergeAnnos(annotations)); }
public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom(OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Set<? extends OWLAnnotation> annotations) { return new OWLAnnotationAssertionAxiomImpl(this, subject, property, value, annotations); }
public static void serialize(SerializationStreamWriter streamWriter, OWLAnnotationAssertionAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getSubject()); streamWriter.writeObject(instance.getValue()); }
/** * Determines if this annotation assertion deprecates the IRI that is the subject of the * annotation. * * @return {@code true} if this annotation assertion deprecates the subject IRI of the * assertion, otherwise {@code false}. * @see org.semanticweb.owlapi.model.OWLAnnotation#isDeprecatedIRIAnnotation() */ @Override public boolean isDeprecatedIRIAssertion() { return property.isDeprecated() && getAnnotation().isDeprecatedIRIAnnotation(); }
@Nonnull @Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(subject, "subject cannot be null"); checkNotNull(property, "property cannot be null"); checkNotNull(value, "value cannot be null"); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
/** * Determines if this annotation assertion deprecates the IRI that is the subject of the annotation. * * @return <code>true</code> if this annotation assertion deprecates the subject IRI of the assertion, otherwise * <code>false</code>. * * @see {@link org.semanticweb.owlapi.model.OWLAnnotation#isDeprecatedIRIAnnotation()} */ public boolean isDeprecatedIRIAssertion() { return property.isDeprecated() && getAnnotation().isDeprecatedIRIAnnotation(); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }
/** * Determines if this annotation assertion deprecates the IRI that is the subject of the * annotation. * * @return {@code true} if this annotation assertion deprecates the subject IRI of the * assertion, otherwise {@code false}. * @see org.semanticweb.owlapi.model.OWLAnnotation#isDeprecatedIRIAnnotation() */ @Override public boolean isDeprecatedIRIAssertion() { return property.isDeprecated() && getAnnotation().isDeprecatedIRIAnnotation(); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
public static OWLAnnotationAssertionAxiomImpl instantiate(SerializationStreamReader streamReader) throws SerializationException { Set<OWLAnnotation> annotations = CustomFieldSerializerUtil.deserializeAnnotations(streamReader); OWLAnnotationProperty prop = (OWLAnnotationProperty) streamReader.readObject(); OWLAnnotationSubject subject = (OWLAnnotationSubject) streamReader.readObject(); OWLAnnotationValue value = (OWLAnnotationValue) streamReader.readObject(); return new OWLAnnotationAssertionAxiomImpl(subject, prop, value, annotations); }
/** * Determines if this annotation assertion deprecates the IRI that is the subject of the * annotation. * * @return {@code true} if this annotation assertion deprecates the subject IRI of the * assertion, otherwise {@code false}. * @see org.semanticweb.owlapi.model.OWLAnnotation#isDeprecatedIRIAnnotation() */ @Override public boolean isDeprecatedIRIAssertion() { return property.isDeprecated() && getAnnotation().isDeprecatedIRIAnnotation(); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), mergeAnnos(anns)); }
@Override @SuppressWarnings("unchecked") public OWLAnnotationAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAnnotationAssertionAxiomImpl(getSubject(), getProperty(), getValue(), NO_ANNOTATIONS); }
@Override public OWLAnnotationAssertionAxiom getOWLAnnotationAssertionAxiom( OWLAnnotationProperty property, OWLAnnotationSubject subject, OWLAnnotationValue value, Collection<OWLAnnotation> annotations) { checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(value, VALUE_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLAnnotationAssertionAxiomImpl(subject, property, value, annotations); }