Examples of buildObject()


Examples of org.semanticweb.owlapitools.builders.BuilderSubDataProperty.buildObject()

        BuilderSubDataProperty builder = new BuilderSubDataProperty(df)
                .withSub(dp).withSup(df.getOWLTopDataProperty());
        OWLObject expected = df.getOWLSubDataPropertyOfAxiom(dp,
                df.getOWLTopDataProperty());
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubObjectProperty.buildObject()

                .withSub(op).withSup(df.getOWLTopObjectProperty())
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLSubObjectPropertyOfAxiom(op,
                df.getOWLTopObjectProperty(), annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSymmetricObjectProperty.buildObject()

        BuilderSymmetricObjectProperty builder = new BuilderSymmetricObjectProperty(
                df).withProperty(op).withAnnotations(annotations);
        OWLObject expected = df.getOWLSymmetricObjectPropertyAxiom(op,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderTransitiveObjectProperty.buildObject()

        BuilderTransitiveObjectProperty builder = new BuilderTransitiveObjectProperty(
                df).withProperty(op).withAnnotations(annotations);
        OWLObject expected = df.getOWLTransitiveObjectPropertyAxiom(op,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderUnionOf.buildObject()

    public void shouldBuildUnionOf() {
        // given
        BuilderUnionOf builder = new BuilderUnionOf(df).withItems(classes);
        OWLObject expected = df.getOWLObjectUnionOf(classes);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
}
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.