Examples of applyChanges()


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

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLInverseObjectPropertiesAxiom(op, op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLIrreflexiveObjectPropertyAxiom(op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

                .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));
    }

    @Test
View Full Code Here

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

                .withSubject(i);
        OWLAxiom expected = df.getOWLNegativeObjectPropertyAssertionAxiom(op,
                i, i, annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderObjectPropertyAssertion.applyChanges()

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLObjectPropertyAssertionAxiom(op, i, i,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

        OWLAxiom expected = df.getOWLObjectPropertyDomainAxiom(op, ce,
                annotations);
        builder.withDomain(ce).withProperty(op).withAnnotations(annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

                .withProperty(op).withRange(ce).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLObjectPropertyRangeAxiom(op, ce,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

        }
        OWLAxiom expected = df.getOWLSubPropertyChainOfAxiom(chain, op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLReflexiveObjectPropertyAxiom(op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

        BuilderSWRLRule builder = new BuilderSWRLRule(df).withBody(v1)
                .withHead(v2);
        OWLAxiom expected = df.getSWRLRule(body, head);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @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.