Examples of BuilderDisjointObjectProperties


Examples of org.semanticweb.owlapitools.builders.BuilderDisjointObjectProperties

    }

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

Examples of org.semanticweb.owlapitools.builders.BuilderDisjointObjectProperties

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

Examples of org.semanticweb.owlapitools.builders.BuilderDisjointObjectProperties

    @Test
    public void shouldBuildDisjointObjectProperties()
            throws OWLOntologyCreationException {
        // given
        BuilderDisjointObjectProperties builder = new BuilderDisjointObjectProperties(
                df).withItems(ops).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDisjointObjectPropertiesAxiom(ops,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.