Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLObject


    public void shouldBuildSWRLRule() {
        // given
        SWRLRule expected = df.getSWRLRule(body, head);
        BuilderSWRLRule builder = new BuilderSWRLRule(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here


                df.getSWRLIndividualArgument(i),
                df.getSWRLIndividualArgument(i));
        BuilderSWRLSameIndividualAtom builder = new BuilderSWRLSameIndividualAtom(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    public void shouldBuildSWRLVariable() {
        // given
        SWRLVariable expected = df.getSWRLVariable(iri);
        BuilderSWRLVariable builder = new BuilderSWRLVariable(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

        OWLSymmetricObjectPropertyAxiom expected = df
                .getOWLSymmetricObjectPropertyAxiom(op, annotations);
        BuilderSymmetricObjectProperty builder = new BuilderSymmetricObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

        OWLTransitiveObjectPropertyAxiom expected = df
                .getOWLTransitiveObjectPropertyAxiom(op, annotations);
        BuilderTransitiveObjectProperty builder = new BuilderTransitiveObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    public void shouldBuildUnionOf() {
        // given
        OWLObjectUnionOf expected = df.getOWLObjectUnionOf(classes);
        BuilderUnionOf builder = new BuilderUnionOf(expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataAllValuesFrom() {
        // given
        BuilderDataAllValuesFrom builder = new BuilderDataAllValuesFrom(df)
                .withProperty(dp).withRange(d);
        OWLObject expected = df.getOWLDataAllValuesFrom(dp, d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataComplementOf() {
        // given
        BuilderDataComplementOf builder = new BuilderDataComplementOf(df)
                .withRange(d);
        OWLObject expected = df.getOWLDataComplementOf(d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataExactCardinality() {
        // given
        BuilderDataExactCardinality builder = new BuilderDataExactCardinality(
                df).withCardinality(1).withProperty(dp).withRange(d);
        OWLObject expected = df.getOWLDataExactCardinality(1, dp, d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataHasValue() {
        // given
        BuilderDataHasValue builder = new BuilderDataHasValue(df).withProperty(
                dp).withLiteral(lit);
        OWLObject expected = df.getOWLDataHasValue(dp, lit);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLObject

Copyright © 2018 www.massapicom. 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.