/** * Gets a SWRL data property atom, i.e. R(x, y) where R is an OWL data * property (expression) and x and y are are either a constant or * a d-variable. * * @param property The property (P) * @param arg0 The first argument (x) * @param arg1 The second argument (y) */ public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { return new SWRLDataPropertyAtomImpl(this, property, arg0, arg1); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SWRLDataPropertyAtom)) { return false; } SWRLDataPropertyAtom other = (SWRLDataPropertyAtom) obj; return other.getPredicate().equals(getPredicate()) && other.getFirstArgument().equals(getFirstArgument()) && other.getSecondArgument().equals(getSecondArgument()); } }
@Nonnull @Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom( OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNotNull(property, "property cannot be null"); checkNotNull(arg0, "arg0 cannot be null"); checkNotNull(arg1, "arg1 cannot be null"); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }
public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof SWRLDataPropertyAtom)) { return false; } SWRLDataPropertyAtom other = (SWRLDataPropertyAtom) obj; return other.getPredicate().equals(getPredicate()) && other.getFirstArgument().equals(getFirstArgument()) && other.getSecondArgument().equals(getSecondArgument()); } }
@Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(arg0, ARG0_CANNOT_BE_NULL); checkNotNull(arg1, ARG1_CANNOT_BE_NULL); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SWRLDataPropertyAtom)) { return false; } SWRLDataPropertyAtom other = (SWRLDataPropertyAtom) obj; return other.getPredicate().equals(getPredicate()) && other.getFirstArgument().equals(getFirstArgument()) && other.getSecondArgument().equals(getSecondArgument()); } }
@Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(arg0, ARG0_CANNOT_BE_NULL); checkNotNull(arg1, ARG1_CANNOT_BE_NULL); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }
@Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(arg0, ARG0_CANNOT_BE_NULL); checkNotNull(arg1, ARG1_CANNOT_BE_NULL); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }
@Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNull(property, "property"); checkNull(arg0, "arg0"); checkNull(arg1, "arg1"); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }
@Override public SWRLDataPropertyAtom getSWRLDataPropertyAtom(OWLDataPropertyExpression property, SWRLIArgument arg0, SWRLDArgument arg1) { checkNotNull(property, PROPERTY_CANNOT_BE_NULL); checkNotNull(arg0, ARG0_CANNOT_BE_NULL); checkNotNull(arg1, ARG1_CANNOT_BE_NULL); return new SWRLDataPropertyAtomImpl(property, arg0, arg1); }