Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDataProperty


        assertFalse(restC.equals(restD));
    }

    @Test
    public void testHashCodeDataAll() {
        OWLDataProperty prop = DP(IRI());
        OWLDataRange filler = D(IRI());
        OWLRestriction restA = testSubject
                .getOWLDataAllValuesFrom(prop, filler);
        OWLRestriction restB = testSubject
                .getOWLDataAllValuesFrom(prop, filler);
View Full Code Here


        assertNotNull(axiom);
    }

    @Test
    public void testEqualsPositiveDataFunctionalData() {
        OWLDataProperty prop = DP(IRI());
        OWLPropertyAxiom axA = testSubject
                .getOWLFunctionalDataPropertyAxiom(prop);
        OWLPropertyAxiom axB = testSubject
                .getOWLFunctionalDataPropertyAxiom(prop);
        assertEquals(axA, axB);
View Full Code Here

        assertFalse(axA.equals(axB));
    }

    @Test
    public void testHashCodeDataFunctionalData() {
        OWLDataProperty prop = DP(IRI());
        OWLPropertyAxiom axA = testSubject
                .getOWLFunctionalDataPropertyAxiom(prop);
        OWLPropertyAxiom axB = testSubject
                .getOWLFunctionalDataPropertyAxiom(prop);
        assertEquals(axA.hashCode(), axB.hashCode());
View Full Code Here

    }

    @Test
    public void testEqualsPositiveNotDataRel() {
        OWLIndividual s = I();
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, s, o);
        OWLIndividualAxiom axB = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, s, o);
View Full Code Here

    }

    @Test
    public void testEqualsNegativeNotDataRel() {
        // Different subject
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, I(), o);
        OWLIndividualAxiom axB = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, I(), o);
View Full Code Here

    }

    @Test
    public void testHashCodeNotDataRel() {
        OWLIndividual s = I();
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, s, o);
        OWLIndividualAxiom axB = testSubject
                .getOWLNegativeDataPropertyAssertionAxiom(p, s, o);
View Full Code Here

    }

    @Test
    public void testEqualsPositiveDataRel() {
        OWLIndividual s = I();
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject.getOWLDataPropertyAssertionAxiom(
                p, s, o);
        OWLIndividualAxiom axB = testSubject.getOWLDataPropertyAssertionAxiom(
                p, s, o);
View Full Code Here

    }

    @Test
    public void testEqualsNegativeDataRel() {
        // Different subject
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject.getOWLDataPropertyAssertionAxiom(
                p, I(), o);
        OWLIndividualAxiom axB = testSubject.getOWLDataPropertyAssertionAxiom(
                p, I(), o);
View Full Code Here

    }

    @Test
    public void testHashCodeDataRel() {
        OWLIndividual s = I();
        OWLDataProperty p = DP(IRI());
        OWLLiteral o = Literal();
        OWLIndividualAxiom axA = testSubject.getOWLDataPropertyAssertionAxiom(
                p, s, o);
        OWLIndividualAxiom axB = testSubject.getOWLDataPropertyAssertionAxiom(
                p, s, o);
View Full Code Here

                C(IRI())));
    }

    @Test
    public void testEqualsPositiveDataPropertyDomain() {
        OWLDataProperty left = DP(IRI());
        OWLClass right = C(IRI());
        OWLAxiom axA = testSubject.getOWLDataPropertyDomainAxiom(left, right);
        OWLAxiom axB = testSubject.getOWLDataPropertyDomainAxiom(left, right);
        assertEquals(axA, axB);
    }
View Full Code Here

TOP

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

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.