Package org.semanticweb.owlapitools.builders

Examples of org.semanticweb.owlapitools.builders.BuilderEquivalentDataProperties


    @Test
    public void shouldBuildEquivalentDataProperties() {
        // given
        OWLEquivalentDataPropertiesAxiom expected = df
                .getOWLEquivalentDataPropertiesAxiom(dps, annotations);
        BuilderEquivalentDataProperties builder = new BuilderEquivalentDataProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here


    }

    @Test
    public void shouldBuildEquivalentDataProperties() {
        // given
        BuilderEquivalentDataProperties builder = new BuilderEquivalentDataProperties(
                df).withItems(dps).withAnnotations(annotations);
        OWLObject expected = df.getOWLEquivalentDataPropertiesAxiom(dps,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildEquivalentDataProperties()
            throws OWLOntologyCreationException {
        // given
        BuilderEquivalentDataProperties builder = new BuilderEquivalentDataProperties(
                df).withItems(dps).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLEquivalentDataPropertiesAxiom(dps,
                annotations);
        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.BuilderEquivalentDataProperties

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.