Examples of BuilderSubObjectProperty


Examples of org.semanticweb.owlapitools.builders.BuilderSubObjectProperty

    }

    @Test
    public void shouldBuildSubObjectProperty() {
        // given
        BuilderSubObjectProperty builder = new BuilderSubObjectProperty(df)
                .withSub(op).withSup(df.getOWLTopObjectProperty())
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLSubObjectPropertyOfAxiom(op,
                df.getOWLTopObjectProperty(), annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubObjectProperty

    public void shouldBuildSubObjectProperty() {
        // given
        OWLSubObjectPropertyOfAxiom expected = df
                .getOWLSubObjectPropertyOfAxiom(op,
                        df.getOWLTopObjectProperty(), annotations);
        BuilderSubObjectProperty builder = new BuilderSubObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubObjectProperty

    @Test
    public void shouldBuildSubObjectProperty()
            throws OWLOntologyCreationException {
        // given
        BuilderSubObjectProperty builder = new BuilderSubObjectProperty(df)
                .withSub(op).withSup(df.getOWLTopObjectProperty())
                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSubObjectPropertyOfAxiom(op,
                df.getOWLTopObjectProperty(), 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.