@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLDataPropertyDomainAxiom(getProperty(), getDomain()); }
public static void serialize(SerializationStreamWriter streamWriter, OWLDataPropertyDomainAxiomImpl instance) throws SerializationException { CustomFieldSerializerUtil.serializeAnnotations(instance, streamWriter); streamWriter.writeObject(instance.getProperty()); streamWriter.writeObject(instance.getDomain()); }
public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return getOWLDataFactory().getOWLDataPropertyDomainAxiom(getProperty(), getDomain(), mergeAnnos(annotations)); }
public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom(OWLDataPropertyExpression property, OWLClassExpression domain, Set<? extends OWLAnnotation> annotations) { return new OWLDataPropertyDomainAxiomImpl(this, property, domain, annotations); }
public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLDataFactory df = getOWLDataFactory(); OWLClassExpression sub = df.getOWLDataSomeValuesFrom(getProperty(), df.getTopDatatype()); return df.getOWLSubClassOfAxiom(sub, getDomain()); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), OWL2DatatypeImpl.getDatatype(OWL2Datatype.RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }
@Nonnull @Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, @Nonnull Set<? extends OWLAnnotation> annotations) { checkNotNull(property, "property cannot be null"); checkNotNull(domain, "domain cannot be null"); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override public OWLAxiom getAnnotatedAxiom(Set<OWLAnnotation> annotations) { return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(annotations)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), new OWL2DatatypeImpl(RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), new OWL2DatatypeImpl(RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }
@Override public OWLDataPropertyDomainAxiom getOWLDataPropertyDomainAxiom( OWLDataPropertyExpression property, OWLClassExpression domain, Collection<OWLAnnotation> annotations) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(domain, DOMAIN_CANNOT_BE_NULL); checkAnnotations(annotations); return new OWLDataPropertyDomainAxiomImpl(property, domain, annotations); }
@Override @SuppressWarnings("unchecked") public OWLDataPropertyDomainAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), NO_ANNOTATIONS); }
@Override @SuppressWarnings("unchecked") public <T extends OWLAxiom> T getAnnotatedAxiom(Stream<OWLAnnotation> anns) { return (T) new OWLDataPropertyDomainAxiomImpl(getProperty(), getDomain(), mergeAnnos(anns)); }
@Override public OWLSubClassOfAxiom asOWLSubClassOfAxiom() { OWLClassExpression sub = new OWLDataSomeValuesFromImpl(getProperty(), new OWL2DatatypeImpl(RDFS_LITERAL)); return new OWLSubClassOfAxiomImpl(sub, getDomain(), NO_ANNOTATIONS); } }