Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDataExactCardinality


    }

    @Test
    public void shouldBuildDataExactCardinality() {
        // given
        OWLDataExactCardinality expected = df.getOWLDataExactCardinality(1, dp,
                d);
        BuilderDataExactCardinality builder = new BuilderDataExactCardinality(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here


        // Restrictions //Now we want to say that Person has exactly 1 Age,
        // exactly 1 Gender and, only has gender that is male or female. We will
        // deal with these restrictions one by one and then combine them as a
        // superclass (Necessary conditions) of Person. All anonymous class
        // expressions extend OWLClassExpression. First, hasAge exactly 1
        OWLDataExactCardinality hasAgeRestriction = factory
                .getOWLDataExactCardinality(1, hasAge);
        // Now the hasGender exactly 1
        OWLObjectExactCardinality hasGenderRestriction = factory
                .getOWLObjectExactCardinality(1, hasGender);
        // And finally, the hasGender only {male female} To create this
View Full Code Here

TOP

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

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.