Examples of buildObject()


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

        // given
        BuilderSWRLDifferentIndividualsAtom builder = new BuilderSWRLDifferentIndividualsAtom(
                df).withArg0(var2).withArg1(var2).withAnnotations(annotations);
        OWLObject expected = df.getSWRLDifferentIndividualsAtom(var2, var2);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLIndividualArgument builder = new BuilderSWRLIndividualArgument(
                df).with(i);
        OWLObject expected = df.getSWRLIndividualArgument(i);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLLiteralArgument builder = new BuilderSWRLLiteralArgument(df)
                .with(lit);
        OWLObject expected = df.getSWRLLiteralArgument(lit);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLObjectPropertyAtom builder = new BuilderSWRLObjectPropertyAtom(
                df).withProperty(op).withArg0(var2).withArg1(var2);
        OWLObject expected = df.getSWRLObjectPropertyAtom(op, var2, var2);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

        // given
        BuilderSWRLRule builder = new BuilderSWRLRule(df).withBody(v1)
                .withHead(v2);
        OWLObject expected = df.getSWRLRule(body, head);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

                df.getSWRLIndividualArgument(i));
        OWLObject expected = df.getSWRLSameIndividualAtom(
                df.getSWRLIndividualArgument(i),
                df.getSWRLIndividualArgument(i));
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

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

    @Test
View Full Code Here

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

        // given
        BuilderSameIndividual builder = new BuilderSameIndividual(df)
                .withItems(inds).withAnnotations(annotations);
        OWLObject expected = df.getOWLSameIndividualAxiom(inds, annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

                df).withSub(ap).withSup(df.getRDFSLabel())
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLSubAnnotationPropertyOfAxiom(ap,
                df.getRDFSLabel(), annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }

    @Test
View Full Code Here

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

                .withAnnotations(annotations).withSub(ce)
                .withSup(df.getOWLThing());
        OWLObject expected = df.getOWLSubClassOfAxiom(ce, df.getOWLThing(),
                annotations);
        // 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.