/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderSubObjectProperty(OWLSubObjectPropertyOfAxiom expected, OWLDataFactory df) { this(df); withSub(expected.getSubProperty()).withSup(expected.getSuperProperty()) .withAnnotations(expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderSubObjectProperty(OWLSubObjectPropertyOfAxiom expected, OWLDataFactory df) { this(df); withSub(expected.getSubProperty()).withSup(expected.getSuperProperty()) .withAnnotations(expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderSubObjectProperty(OWLSubObjectPropertyOfAxiom expected, OWLDataFactory df) { this(df); withSub(expected.getSubProperty()).withSup(expected.getSuperProperty()) .withAnnotations(expected.annotations()); }
/** * Builder initialized from an existing object. * * @param expected * the existing object * @param df * data factory */ public BuilderSubObjectProperty(OWLSubObjectPropertyOfAxiom expected, OWLDataFactory df) { this(df); withSub(expected.getSubProperty()).withSup(expected.getSuperProperty()).withAnnotations(expected.annotations()); }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }
@Override void handleChild(ObjectPropertyEH h) { OWLObjectPropertyExpression prop = h.getOWLObject(); if (builder.getSub() == null && verifyNotNull(chain).chainSize() == 0) { builder.withSub(prop); } else if (builder.getSup() == null) { builder.withSup(prop); verifyNotNull(chain).withProperty(prop); } else { ensureNotNull(null, "Expected two object property expression elements"); } }