Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom


    }

    @Test
    public void shouldBuildDisjointObjectProperties() {
        // given
        OWLDisjointObjectPropertiesAxiom expected = df
                .getOWLDisjointObjectPropertiesAxiom(ops, annotations);
        BuilderDisjointObjectProperties builder = new BuilderDisjointObjectProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here


        OWLOntology ont = getOWLOntology("ont");
        OWLObjectProperty propP = ObjectProperty(iri("p"));
        OWLObjectProperty propQ = ObjectProperty(iri("q"));
        OWLObjectProperty propR = ObjectProperty(iri("r"));
        OWLOntologyManager man = ont.getOWLOntologyManager();
        OWLDisjointObjectPropertiesAxiom ax = DisjointObjectProperties(propP,
                propQ, propR);
        man.addAxiom(ont, ax);
        performAxiomTests(ont, ax);
        assertTrue(ont.getDisjointObjectPropertiesAxioms(propP).contains(ax));
        assertTrue(ont.getDisjointObjectPropertiesAxioms(propQ).contains(ax));
View Full Code Here

TOP

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

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.