Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLObjectProperty


            addAxiom(dataFactory.getOWLSubPropertyChainOfAxiom(chain, r));
        }
    }

    private void LeftIdentity(OWLObjectProperty r) {
        OWLObjectProperty s;
        if (jj_2_21(2)) {
            jj_consume_token(LEFT_IDENTITY_ATTRIBUTE);
            s = RoleName();
            List<OWLObjectPropertyExpression> chain = new ArrayList<OWLObjectPropertyExpression>(
                    2);
View Full Code Here


        } else {}
    }

    private void Parents(OWLObjectProperty subProp) {
        Set<OWLObjectProperty> roles;
        OWLObjectProperty superProp;
        if (jj_2_46(2)) {
            if (jj_2_44(2)) {
                jj_consume_token(PARENTS);
                if (jj_2_40(2)) {
                    jj_consume_token(NIL);
View Full Code Here

            }
        } else {}
    }

    private void Parent(OWLObjectProperty subProp) {
        OWLObjectProperty superProp;
        if (jj_2_47(2)) {
            superProp = RoleName();
            addAxiom(dataFactory.getOWLSubObjectPropertyOfAxiom(subProp,
                    superProp));
        } else {}
View Full Code Here

        jj_consume_token(CLOSEPAR);
        addAxiom(dataFactory.getOWLEquivalentObjectPropertiesAxiom(exp1, exp2));
    }

    private void ComplexRoleInclusion() {
        OWLObjectProperty superProp;
        List<OWLObjectPropertyExpression> chain;
        jj_consume_token(OPENPAR);
        jj_consume_token(ROLE_INCLUSION);
        chain = propertyChain();
        superProp = RoleName();
View Full Code Here

        jj_consume_token(CLOSEPAR);
        return chain;
    }

    private void Transitive() {
        OWLObjectProperty prop;
        jj_consume_token(OPENPAR);
        jj_consume_token(TRANSITIVE);
        prop = RoleName();
        jj_consume_token(CLOSEPAR);
        addAxiom(dataFactory.getOWLTransitiveObjectPropertyAxiom(prop));
View Full Code Here

        jj_consume_token(CLOSEPAR);
        addAxiom(dataFactory.getOWLTransitiveObjectPropertyAxiom(prop));
    }

    private void Range() {
        OWLObjectProperty prop;
        OWLClassExpression rng;
        jj_consume_token(OPENPAR);
        jj_consume_token(RANGE);
        prop = RoleName();
        rng = ConceptExpression();
View Full Code Here

        return dataFactory.getOWLObjectProperty(IRI);
    }

    private Set<OWLObjectProperty> RoleNameSet() {
        Set<OWLObjectProperty> roles = new HashSet<OWLObjectProperty>();
        OWLObjectProperty role;
        label_6: while (true) {
            role = RoleName();
            roles.add(role);
            if (jj_2_63(2)) {} else {
                break label_6;
View Full Code Here

        addAxiom(dataFactory.getOWLClassAssertionAxiom(type, ind));
    }

    private void Related() {
        OWLIndividual subj;
        OWLObjectProperty prop;
        OWLIndividual obj;
        jj_consume_token(OPENPAR);
        jj_consume_token(RELATED);
        subj = IndividualName();
        prop = RoleName();
View Full Code Here

        if (jj_2_30(5)) {
            jj_consume_token(INVERSE);
            inverse = true;
        }
        if (inverse) {
            OWLObjectProperty prop = factory.getOWLObjectProperty(iri);
            return factory.getOWLObjectInverseOf(prop);
        } else {
            return factory.getOWLObjectProperty(iri);
        }
    }
View Full Code Here

        assertNotNull(obj);
    }

    @Test
    public void testEqualsPositiveDisjointObjectProperties() {
        OWLObjectProperty a = OP(IRI());
        OWLObjectProperty b = OP(IRI());
        OWLObjectProperty c = OP(IRI());
        OWLObject objA = testSubject.getOWLDisjointObjectPropertiesAxiom(a, b,
                c);
        OWLObject objB = testSubject.getOWLDisjointObjectPropertiesAxiom(a, b,
                c);
        assertEquals(objA, objB);
View Full Code Here

TOP

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

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.