Examples of buildObject()


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

                df).withAnnotations(annotations);
        OWLObject expected = df.getOWLObjectPropertyDomainAxiom(op, ce,
                annotations);
        builder.withDomain(ce).withProperty(op).withAnnotations(annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        BuilderObjectPropertyRange builder = new BuilderObjectPropertyRange(df)
                .withProperty(op).withRange(ce).withAnnotations(annotations);
        OWLObject expected = df.getOWLObjectPropertyRangeAxiom(op, ce,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderObjectSomeValuesFrom builder = new BuilderObjectSomeValuesFrom(
                df).withProperty(op).withRange(ce);
        OWLObject expected = df.getOWLObjectSomeValuesFrom(op, ce);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

    public void shouldBuildOneOf() {
        // given
        BuilderOneOf builder = new BuilderOneOf(df).withItem(i);
        OWLObject expected = df.getOWLObjectOneOf(i);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

            builder.withPropertyInChain(p);
        }
        OWLObject expected = df.getOWLSubPropertyChainOfAxiom(chain, op,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

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

    @Test
View Full Code Here

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

        // given
        BuilderSWRLBuiltInAtom builder = new BuilderSWRLBuiltInAtom(df).with(
                iri).with(var1);
        OWLObject expected = df.getSWRLBuiltInAtom(iri, Arrays.asList(var1));
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLClassAtom builder = new BuilderSWRLClassAtom(df).with(ce)
                .with(var2);
        OWLObject expected = df.getSWRLClassAtom(ce, var2);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLDataPropertyAtom builder = new BuilderSWRLDataPropertyAtom(
                df).withProperty(dp).with(var2).with(var1);
        OWLObject expected = df.getSWRLDataPropertyAtom(dp, var2, var1);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLDataRangeAtom builder = new BuilderSWRLDataRangeAtom(df)
                .with(d).with(var1);
        OWLObject expected = df.getSWRLDataRangeAtom(d, var1);
        // 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.