Examples of buildObject()


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

        OWLFunctionalObjectPropertyAxiom expected = df
                .getOWLFunctionalObjectPropertyAxiom(op, annotations);
        BuilderFunctionalObjectProperty builder = new BuilderFunctionalObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

    public void shouldBuildHasKey() {
        // given
        OWLHasKeyAxiom expected = df.getOWLHasKeyAxiom(ce, ops, annotations);
        BuilderHasKey builder = new BuilderHasKey(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        OWLImportsDeclaration expected = df.getOWLImportsDeclaration(iri);
        BuilderImportsDeclaration builder = new BuilderImportsDeclaration(
                expected, df);
        // when
        OWLImportsDeclaration built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLInverseFunctionalObjectPropertyAxiom expected = df
                .getOWLInverseFunctionalObjectPropertyAxiom(op, annotations);
        BuilderInverseFunctionalObjectProperty builder = new BuilderInverseFunctionalObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLInverseObjectPropertiesAxiom expected = df
                .getOWLInverseObjectPropertiesAxiom(op, op, annotations);
        BuilderInverseObjectProperties builder = new BuilderInverseObjectProperties(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        OWLIrreflexiveObjectPropertyAxiom expected = df
                .getOWLIrreflexiveObjectPropertyAxiom(op, annotations);
        BuilderIrreflexiveObjectProperty builder = new BuilderIrreflexiveObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

    public void shouldBuildLiteral() {
        // given
        OWLLiteral expected = df.getOWLLiteral(true);
        BuilderLiteral builder = new BuilderLiteral(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        OWLNamedIndividual expected = df.getOWLNamedIndividual(iri);
        BuilderNamedIndividual builder = new BuilderNamedIndividual(expected,
                df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

                .getOWLNegativeDataPropertyAssertionAxiom(dp, i, lit,
                        annotations);
        BuilderNegativeDataPropertyAssertion builder = new BuilderNegativeDataPropertyAssertion(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

                .getOWLNegativeObjectPropertyAssertionAxiom(op, i, i,
                        annotations);
        BuilderNegativeObjectPropertyAssertion builder = new BuilderNegativeObjectPropertyAssertion(
                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.