Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDataRange


        int cardinality = 3;
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataExactCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertNotNull(restA);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataExactCardinality(cardinality, prop, dataRange);
        assertNotNull(restB);
        assertEquals(restA.getProperty(), prop);
    }
View Full Code Here


                        testSubject.getTopDatatype());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataExactCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertEquals(restA, restB);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restC = testSubject
                .getOWLDataExactCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restD = testSubject
                .getOWLDataExactCardinality(cardinality, prop, dataRange);
        assertEquals(restC, restD);
View Full Code Here

    @Test
    public void testHashCodeDataExact() {
        OWLDataProperty prop = DP(IRI());
        int cardinality = 3;
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataExactCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataExactCardinality(cardinality, prop, dataRange);
        assertEquals(restA, restB);
View Full Code Here

        int cardinality = 3;
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataMinCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertNotNull(restA);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMinCardinality(cardinality, prop, dataRange);
        assertNotNull(restB);
        assertEquals(restA.getProperty(), prop);
    }
View Full Code Here

                        testSubject.getTopDatatype());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMinCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertEquals(restA, restB);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restC = testSubject
                .getOWLDataMinCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restD = testSubject
                .getOWLDataMinCardinality(cardinality, prop, dataRange);
        assertEquals(restC, restD);
View Full Code Here

    @Test
    public void testHashCodeDataMin() {
        OWLDataProperty prop = DP(IRI());
        int cardinality = 3;
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataMinCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMinCardinality(cardinality, prop, dataRange);
        assertEquals(restA, restB);
View Full Code Here

        int cardinality = 3;
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataMaxCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertNotNull(restA);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMaxCardinality(cardinality, prop, dataRange);
        assertNotNull(restB);
        assertEquals(restA.getProperty(), prop);
    }
View Full Code Here

                        testSubject.getTopDatatype());
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMaxCardinality(cardinality, prop,
                        testSubject.getTopDatatype());
        assertEquals(restA, restB);
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restC = testSubject
                .getOWLDataMaxCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restD = testSubject
                .getOWLDataMaxCardinality(cardinality, prop, dataRange);
        assertEquals(restC, restD);
View Full Code Here

    @Test
    public void testHashCodeDataMax() {
        OWLDataProperty prop = DP(IRI());
        int cardinality = 3;
        OWLDataRange dataRange = D(IRI());
        OWLDataCardinalityRestriction restA = testSubject
                .getOWLDataMaxCardinality(cardinality, prop, dataRange);
        OWLDataCardinalityRestriction restB = testSubject
                .getOWLDataMaxCardinality(cardinality, prop, dataRange);
        assertEquals(restA, restB);
View Full Code Here

    }

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

TOP

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

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.