Package org.semanticweb.owlapitools.builders

Examples of org.semanticweb.owlapitools.builders.BuilderNegativeDataPropertyAssertion


    public void shouldBuildNegativeDataPropertyAssertion() {
        // given
        OWLNegativeDataPropertyAssertionAxiom expected = df
                .getOWLNegativeDataPropertyAssertionAxiom(dp, i, lit,
                        annotations);
        BuilderNegativeDataPropertyAssertion builder = new BuilderNegativeDataPropertyAssertion(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here


    }

    @Test
    public void shouldBuildNegativeDataPropertyAssertion() {
        // given
        BuilderNegativeDataPropertyAssertion builder = new BuilderNegativeDataPropertyAssertion(
                df).withAnnotations(annotations).withProperty(dp)
                .withValue(lit).withSubject(i);
        OWLObject expected = df.getOWLNegativeDataPropertyAssertionAxiom(dp, i,
                lit, annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildNegativeDataPropertyAssertion()
            throws OWLOntologyCreationException {
        // given
        BuilderNegativeDataPropertyAssertion builder = new BuilderNegativeDataPropertyAssertion(
                df).withAnnotations(annotations).withProperty(dp)
                .withValue(lit).withSubject(i);
        OWLAxiom expected = df.getOWLNegativeDataPropertyAssertionAxiom(dp, i,
                lit, annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapitools.builders.BuilderNegativeDataPropertyAssertion

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.