Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDatatype


        // Different datatypes - same literal
        OWLLiteral conA = testSubject.getOWLLiteral("3", D(IRI()));
        OWLLiteral conB = testSubject.getOWLLiteral("3", D(IRI()));
        assertFalse(conA.equals(conB));
        // Different literals - same datatype
        OWLDatatype dtC = D(IRI());
        OWLLiteral conC = testSubject.getOWLLiteral("3", dtC);
        OWLLiteral conD = testSubject.getOWLLiteral("4", dtC);
        assertFalse(conC.equals(conD));
    }
View Full Code Here


        assertFalse(conC.equals(conD));
    }

    @Test
    public void testHashCodeOWLLiteral() {
        OWLDatatype dt = D(IRI());
        OWLLiteral conA = testSubject.getOWLLiteral("3", dt);
        OWLLiteral conB = testSubject.getOWLLiteral("3", dt);
        assertEquals(conA.hashCode(), conB.hashCode());
    }
View Full Code Here

        assertEquals(objA.hashCode(), objB.hashCode());
    }

    @Test
    public void testCreationDatatype() {
        OWLDatatype typeA = D(IRI());
        assertNotNull(typeA);
    }
View Full Code Here

    }

    @Test
    public void testEqualsPositiveDatatype() {
        IRI iri = IRI();
        OWLDatatype typeA = D(iri);
        OWLDatatype typeB = D(iri);
        assertEquals(typeA, typeB);
    }
View Full Code Here

        assertEquals(typeA, typeB);
    }

    @Test
    public void testEqualsNegativeDatatype() {
        OWLDatatype typeA = D(IRI());
        OWLDatatype typeB = D(IRI());
        assertFalse(typeA.equals(typeB));
    }
View Full Code Here

    }

    @Test
    public void testHashCodeDatatype() {
        IRI iri = IRI();
        OWLDatatype typeA = D(iri);
        OWLDatatype typeB = D(iri);
        assertEquals(typeA.hashCode(), typeB.hashCode());
    }
View Full Code Here

        assertEquals(typeA.hashCode(), typeB.hashCode());
    }

    @Test
    public void testCreationDataRange() {
        OWLDatatype rng = D(IRI());
        OWLLiteral facetValue = testSubject.getOWLLiteral("3", D(IRI()));
        OWLDatatypeRestriction restRng = testSubject.getOWLDatatypeRestriction(
                rng,
                testSubject.getOWLFacetRestriction(MAX_EXCLUSIVE, facetValue));
        assertNotNull(restRng);
View Full Code Here

        assertNotNull(restRng);
    }

    @Test
    public void testEqualsPositiveDataRange() {
        OWLDatatype rng = D(IRI());
        OWLLiteral facetValue = testSubject.getOWLLiteral("3", D(IRI()));
        OWLDatatypeRestriction restRngA = testSubject
                .getOWLDatatypeRestriction(rng, testSubject
                        .getOWLFacetRestriction(MAX_EXCLUSIVE, facetValue));
        OWLDatatypeRestriction restRngB = testSubject
View Full Code Here

        assertEquals(restRngA, restRngB);
    }

    @Test
    public void testEqualsNegativeDataRange() {
        OWLDatatype rng = D(IRI());
        OWLLiteral facetValue = testSubject.getOWLLiteral("3", D(IRI()));
        OWLDatatypeRestriction restRngA = testSubject
                .getOWLDatatypeRestriction(rng, testSubject
                        .getOWLFacetRestriction(MAX_EXCLUSIVE, facetValue));
        OWLDatatypeRestriction restRngB = testSubject
View Full Code Here

        assertFalse(restRngA.equals(restRngB));
    }

    @Test
    public void testHashCodeDataRange() {
        OWLDatatype rng = D(IRI());
        OWLLiteral facetValue = testSubject.getOWLLiteral("3", D(IRI()));
        OWLDatatypeRestriction restRngA = testSubject
                .getOWLDatatypeRestriction(rng, testSubject
                        .getOWLFacetRestriction(MAX_EXCLUSIVE, facetValue));
        OWLDatatypeRestriction restRngB = testSubject
View Full Code Here

TOP

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

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.