@Override @SuppressWarnings("unchecked") public OWLNegativeDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
public static void serialize(SerializationStreamWriter streamWriter, OWLNegativeDataPropertyAssertionAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getSubject()); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getObject()); }
@Nonnull @Override public OWLNegativeDataPropertyAssertionAxiom getOWLNegativeDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(object, "object cannot be null"); checkNotNull(subject, "subject cannot be null"); checkAnnotations(annotations); return new OWLNegativeDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous(); } }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectComplementOfImpl(new OWLDataHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
@Override public OWLNegativeDataPropertyAssertionAxiom getOWLNegativeDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous(); } }
@Override @SuppressWarnings("unchecked") public OWLNegativeDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl( Collections.singleton(getSubject())), new OWLObjectComplementOfImpl( new OWLDataHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
@Override public OWLNegativeDataPropertyAssertionAxiom getOWLNegativeDataPropertyAssertionAxiom(OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, Set<? extends OWLAnnotation> annotations) { checkNull(property, "property"); checkNull(object, "object"); checkNull(subject, "subject"); checkNull(annotations, ANNOTATIONS, true); return new OWLNegativeDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous(); }
@Override @SuppressWarnings("unchecked") public OWLNegativeDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override public OWLNegativeDataPropertyAssertionAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(annotations)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectComplementOfImpl(new OWLDataHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
@Override public OWLNegativeDataPropertyAssertionAxiom getOWLNegativeDataPropertyAssertionAxiom( OWLDataPropertyExpression property, OWLIndividual subject, OWLLiteral object, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(object, OBJECT_CANNOT_BE_NULL); checkNotNull(subject, SUBJECT_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLNegativeDataPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous(); } }
@Override @SuppressWarnings("unchecked") public OWLNegativeDataPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeDataPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }