Examples of applyChanges()


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

                df).withItems(dps).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDisjointDataPropertiesAxiom(dps,
                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.BuilderDisjointObjectProperties.applyChanges()

                df).withItems(ops).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDisjointObjectPropertiesAxiom(ops,
                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.BuilderDisjointUnion.applyChanges()

                .withClass(ce).withItems(classes).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDisjointUnionAxiom(ce, classes,
                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.BuilderEquivalentClasses.applyChanges()

                .withItems(classes).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLEquivalentClassesAxiom(classes,
                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.BuilderEquivalentDataProperties.applyChanges()

                df).withItems(dps).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLEquivalentDataPropertiesAxiom(dps,
                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.BuilderEquivalentObjectProperties.applyChanges()

                df).withItems(ops).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLEquivalentObjectPropertiesAxiom(ops,
                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.BuilderFunctionalDataProperty.applyChanges()

                df).withProperty(dp).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLFunctionalDataPropertyAxiom(dp,
                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.BuilderFunctionalObjectProperty.applyChanges()

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLFunctionalObjectPropertyAxiom(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.BuilderHasKey.applyChanges()

        BuilderHasKey builder = new BuilderHasKey(df)
                .withAnnotations(annotations).withClass(ce).withItems(ops);
        OWLAxiom expected = df.getOWLHasKeyAxiom(ce, ops, 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.BuilderInverseFunctionalObjectProperty.applyChanges()

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLInverseFunctionalObjectPropertyAxiom(op,
                annotations);
        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.