Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLIndividualAxiom


    @Test
    public void testEqualsPositiveObjectRel() {
        OWLIndividual s = I();
        OWLObjectProperty p = OP(IRI());
        OWLIndividual o = I();
        OWLIndividualAxiom axA = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, o);
        OWLIndividualAxiom axB = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, o);
        assertEquals(axA, axB);
    }
View Full Code Here


    @Test
    public void testEqualsNegativeObjectRel() {
        // Different subject
        OWLObjectProperty p = OP(IRI());
        OWLIndividual o = I();
        OWLIndividualAxiom axA = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, I(), o);
        OWLIndividualAxiom axB = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, I(), o);
        assertFalse(axA.equals(axB));
        // Different property
        OWLIndividual s = I();
        OWLIndividualAxiom axiomC = testSubject
                .getOWLObjectPropertyAssertionAxiom(OP(IRI()), s, o);
        OWLIndividualAxiom axiomD = testSubject
                .getOWLObjectPropertyAssertionAxiom(OP(IRI()), s, o);
        assertFalse(axiomC.equals(axiomD));
        // Different object
        OWLIndividualAxiom axiomE = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, I());
        OWLIndividualAxiom axiomF = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, I());
        assertFalse(axiomE.equals(axiomF));
    }
View Full Code Here

    @Test
    public void testHashCodeObjectRel() {
        OWLIndividual s = I();
        OWLObjectProperty p = OP(IRI());
        OWLIndividual o = I();
        OWLIndividualAxiom axA = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, o);
        OWLIndividualAxiom axB = testSubject
                .getOWLObjectPropertyAssertionAxiom(p, s, o);
        assertEquals(axA.hashCode(), axB.hashCode());
    }
View Full Code Here

//
// Individual Axioms
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////
  final public OWLIndividualAxiom IndividualAxiom() throws ParseException {
    OWLIndividualAxiom ax;
    if (jj_2_85(2)) {
      ax = SameIndividuals();
    } else if (jj_2_86(2)) {
      ax = DifferentIndividuals();
    } else if (jj_2_87(2)) {
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLIndividualAxiom

Copyright © 2018 www.massapicom. 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.