Examples of SWRLDataRangeAtom


Examples of org.semanticweb.owlapi.model.SWRLDataRangeAtom

    }

    @Test
    public void shouldBuildSWRLDataRangeAtom() {
        // given
        SWRLDataRangeAtom expected = df.getSWRLDataRangeAtom(d, var1);
        BuilderSWRLDataRangeAtom builder = new BuilderSWRLDataRangeAtom(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLDataRangeAtom

            return true;
        }
        if (!(obj instanceof SWRLDataRangeAtom)) {
            return false;
        }
        SWRLDataRangeAtom other = (SWRLDataRangeAtom) obj;
        return other.getArgument().equals(getArgument())
                && other.getPredicate().equals(getPredicate());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLDataRangeAtom

        return visitor.visit(this);
    }

    @Override
    protected int compareObjectOfSameType(OWLObject object) {
        SWRLDataRangeAtom other = (SWRLDataRangeAtom) object;
        int diff = getPredicate().compareTo(other.getPredicate());
        if (diff != 0) {
            return diff;
        }
        return getArgument().compareTo(other.getArgument());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLDataRangeAtom

            return true;
        }
        if (!(obj instanceof SWRLDataRangeAtom)) {
            return false;
        }
        SWRLDataRangeAtom other = (SWRLDataRangeAtom) obj;
        return other.getArgument().equals(getArgument()) && other.getPredicate().equals(getPredicate());
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLDataRangeAtom

    }

    @Override
  protected int compareObjectOfSameType(OWLObject object) {

        SWRLDataRangeAtom other = (SWRLDataRangeAtom) object;
        int diff = getPredicate().compareTo(other.getPredicate());
        if (diff != 0) {
            return diff;
        }
        return getArgument().compareTo(other.getArgument());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.