@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLNegativeObjectPropertyAssertionAxiom(getProperty(), getSubject(), getObject()); }
public static void serialize(SerializationStreamWriter streamWriter, OWLNegativeObjectPropertyAssertionAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getSubject()); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getObject()); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous() || getObject().isAnonymous(); } }
public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom(OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual object, Set<? extends OWLAnnotation> annotations) { return new OWLNegativeObjectPropertyAssertionAxiomImpl(this, subject, property, object, annotations); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl( Collections.singleton(getSubject())), new OWLObjectComplementOfImpl( new OWLObjectHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
public OWLNegativeObjectPropertyAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLNegativeObjectPropertyAssertionAxiom(getProperty(), getSubject(), getObject(), mergeAnnos(annotations)); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous() || getObject().isAnonymous(); } }
@Nonnull @Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual 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 OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override @SuppressWarnings("unchecked") public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectComplementOfImpl(new OWLObjectHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLDataFactory df = getOWLDataFactory(); return df.getOWLSubClassOfAxiom( df.getOWLObjectOneOf(getSubject()), df.getOWLObjectComplementOf(df.getOWLObjectHasValue(getProperty(), getObject())) ); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous() || getObject().isAnonymous(); } }
@Override public OWLNegativeObjectPropertyAssertionAxiom getOWLNegativeObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual subject, OWLIndividual 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 OWLNegativeObjectPropertyAssertionAxiomImpl(subject, property, object, annotations); }
@Override public OWLNegativeObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLNegativeObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectComplementOfImpl(new OWLObjectHasValueImpl(getProperty(), getObject())), NO_ANNOTATIONS); }
@Override public boolean containsAnonymousIndividuals() { return getSubject().isAnonymous() || getObject().isAnonymous(); } }