@Override public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
public OWLObjectPropertyAssertionAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(getProperty(), getSubject(), getObject(), mergeAnnos(annotations)); }
public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(getProperty(), getSubject(), getObject()); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl( Collections.singleton(getSubject())), new OWLObjectHasValueImpl( getProperty(), getObject()), NO_ANNOTATIONS); }
public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom(OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, Set<? extends OWLAnnotation> annotations) { return new OWLObjectPropertyAssertionAxiomImpl(this, individual, property, object, annotations); }
@Override public boolean isInSimplifiedForm() { return !getProperty().isAnonymous(); } }
public static void serialize(SerializationStreamWriter streamWriter, OWLObjectPropertyAssertionAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getSubject()); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getObject()); }
@Nonnull @Override public OWLObjectPropertyAssertionAxiom getOWLObjectPropertyAssertionAxiom( OWLObjectPropertyExpression property, OWLIndividual individual, OWLIndividual object, @Nonnull Set<? extends 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 boolean isInSimplifiedForm() { return !getProperty().isAnonymous(); } }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectHasValueImpl(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 public boolean isInSimplifiedForm() { return !getProperty().isAnonymous(); } }
@Override public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return getOWLDataFactory().getOWLSubClassOfAxiom( getOWLDataFactory().getOWLObjectOneOf(getSubject()), getOWLDataFactory().getOWLObjectHasValue(getProperty(), getObject()) ); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { return new OWLSubClassOfAxiomImpl(new OWLObjectOneOfImpl(getSubject()), new OWLObjectHasValueImpl(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 public boolean isInSimplifiedForm() { return !getProperty().isAnonymous(); } }
@Override @SuppressWarnings("unchecked") public OWLObjectPropertyAssertionAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLObjectPropertyAssertionAxiomImpl(getSubject(), getProperty(), getObject(), NO_ANNOTATIONS); }
public OWLObjectPropertyAssertionAxiom getSimplified() { if(!getProperty().isAnonymous()) { return this; } else { OWLObjectInverseOf property = (OWLObjectInverseOf) getProperty(); OWLObjectPropertyExpression invProp = property.getInverse(); return getOWLDataFactory().getOWLObjectPropertyAssertionAxiom(invProp, getObject(), getSubject()); } }