Examples of BuilderInverseObjectProperties


Examples of org.semanticweb.owlapitools.builders.BuilderInverseObjectProperties

    @Test
    public void shouldBuildInverseObjectProperties() {
        // given
        OWLInverseObjectPropertiesAxiom expected = df
                .getOWLInverseObjectPropertiesAxiom(op, op, annotations);
        BuilderInverseObjectProperties builder = new BuilderInverseObjectProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderInverseObjectProperties

    }

    @Test
    public void shouldBuildInverseObjectProperties() {
        // given
        BuilderInverseObjectProperties builder = new BuilderInverseObjectProperties(
                df).withProperty(op).withInverseProperty(op)
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLInverseObjectPropertiesAxiom(op, op,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderInverseObjectProperties

    @Test
    public void shouldBuildInverseObjectProperties()
            throws OWLOntologyCreationException {
        // given
        BuilderInverseObjectProperties builder = new BuilderInverseObjectProperties(
                df).withProperty(op).withInverseProperty(op)
                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLInverseObjectPropertiesAxiom(op, op,
                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.