Examples of applyChanges()


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

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLAnnotationPropertyRangeAxiom(ap, iri,
                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.BuilderAsymmetricObjectProperty.applyChanges()

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

        BuilderClassAssertion builder = new BuilderClassAssertion(df)
                .withClass(ce).withIndividual(i).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLClassAssertionAxiom(ce, 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.BuilderDataPropertyAssertion.applyChanges()

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDataPropertyAssertionAxiom(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.BuilderDataPropertyDomain.applyChanges()

                .withProperty(dp).withDomain(ce).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDataPropertyDomainAxiom(dp, 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.BuilderDataPropertyRange.applyChanges()

        BuilderDataPropertyRange builder = new BuilderDataPropertyRange(df)
                .withProperty(dp).withRange(d).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDataPropertyRangeAxiom(dp, d, 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.BuilderDatatypeDefinition.applyChanges()

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDatatypeDefinitionAxiom(d,
                df.getDoubleOWLDatatype(), 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.BuilderDeclaration.applyChanges()

        BuilderDeclaration builder = new BuilderDeclaration(df).withEntity(ce)
                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLDeclarationAxiom(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.BuilderDifferentIndividuals.applyChanges()

                df).withItem(i).withItem(df.getOWLNamedIndividual(iri));
        OWLAxiom expected = df.getOWLDifferentIndividualsAxiom(i,
                df.getOWLNamedIndividual(iri));
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

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

                .withItem(ce).withItem(df.getOWLClass(iri));
        OWLAxiom expected = df.getOWLDisjointClassesAxiom(ce,
                df.getOWLClass(iri));
        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.