Examples of SWRLClassAtom


Examples of org.semanticweb.owlapi.model.SWRLClassAtom

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

Examples of org.semanticweb.owlapi.model.SWRLClassAtom

                && other.getPredicate().equals(getPredicate());
    }

    @Override
    protected int compareObjectOfSameType(OWLObject object) {
        SWRLClassAtom other = (SWRLClassAtom) 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.SWRLClassAtom

    }

    @Test
    public void shouldBuildSWRLClassAtom() {
        // given
        SWRLClassAtom expected = df.getSWRLClassAtom(ce, var2);
        BuilderSWRLClassAtom builder = new BuilderSWRLClassAtom(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
View Full Code Here

Examples of org.semanticweb.owlapi.model.SWRLClassAtom

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

Examples of org.semanticweb.owlapi.model.SWRLClassAtom

        return other.getArgument().equals(getArgument()) && other.getPredicate().equals(getPredicate());
    }

    @Override
  protected int compareObjectOfSameType(OWLObject object) {
        SWRLClassAtom other = (SWRLClassAtom) 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.