Package org.semanticweb.owlapitools.builders

Examples of org.semanticweb.owlapitools.builders.BuilderDifferentIndividuals


    }

    @Test
    public void shouldBuildDifferentIndividuals() {
        // given
        BuilderDifferentIndividuals builder = new BuilderDifferentIndividuals(
                df).withItem(i).withItem(df.getOWLNamedIndividual(iri));
        OWLObject expected = df.getOWLDifferentIndividualsAxiom(i,
                df.getOWLNamedIndividual(iri));
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here


    public void shouldBuildDifferentIndividuals() {
        // given
        OWLDifferentIndividualsAxiom expected = df
                .getOWLDifferentIndividualsAxiom(i,
                        df.getOWLNamedIndividual(iri));
        BuilderDifferentIndividuals builder = new BuilderDifferentIndividuals(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDifferentIndividuals()
            throws OWLOntologyCreationException {
        // given
        BuilderDifferentIndividuals builder = new BuilderDifferentIndividuals(
                df).withItem(i).withItem(df.getOWLNamedIndividual(iri));
        OWLAxiom expected = df.getOWLDifferentIndividualsAxiom(i,
                df.getOWLNamedIndividual(iri));
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapitools.builders.BuilderDifferentIndividuals

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.