Examples of buildObject()


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

        BuilderDisjointClasses builder = new BuilderDisjointClasses(df)
                .withItem(ce).withItem(df.getOWLClass(iri));
        OWLObject expected = df.getOWLDisjointClassesAxiom(ce,
                df.getOWLClass(iri));
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        BuilderDisjointDataProperties builder = new BuilderDisjointDataProperties(
                df).withItems(dps).withAnnotations(annotations);
        OWLObject expected = df.getOWLDisjointDataPropertiesAxiom(dps,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        BuilderDisjointObjectProperties builder = new BuilderDisjointObjectProperties(
                df).withItems(ops).withAnnotations(annotations);
        OWLObject expected = df.getOWLDisjointObjectPropertiesAxiom(ops,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        BuilderDisjointUnion builder = new BuilderDisjointUnion(df)
                .withClass(ce).withItems(classes).withAnnotations(annotations);
        OWLObject expected = df.getOWLDisjointUnionAxiom(ce, classes,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

    public void shouldBuildEntity() {
        // given
        OWLClass expected = df.getOWLClass(iri);
        BuilderEntity builder = new BuilderEntity(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLEquivalentClassesAxiom expected = df.getOWLEquivalentClassesAxiom(
                classes, annotations);
        BuilderEquivalentClasses builder = new BuilderEquivalentClasses(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLEquivalentDataPropertiesAxiom expected = df
                .getOWLEquivalentDataPropertiesAxiom(dps, annotations);
        BuilderEquivalentDataProperties builder = new BuilderEquivalentDataProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLEquivalentObjectPropertiesAxiom expected = df
                .getOWLEquivalentObjectPropertiesAxiom(ops, annotations);
        BuilderEquivalentObjectProperties builder = new BuilderEquivalentObjectProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLFacetRestriction expected = df.getOWLFacetRestriction(
                OWLFacet.MAX_EXCLUSIVE, lit);
        BuilderFacetRestriction builder = new BuilderFacetRestriction(expected,
                df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLFunctionalDataPropertyAxiom expected = df
                .getOWLFunctionalDataPropertyAxiom(dp, annotations);
        BuilderFunctionalDataProperty builder = new BuilderFunctionalDataProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
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.