Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.RemoveOntologyAnnotation


                    // if conflict is not resolvable, throws exception
                    List<OWLAnnotation> changed = handler.handleConflict(
                            property, group);
                    for (OWLAnnotation annotation : group) {
                        assert annotation != null;
                        manager.applyChange(new RemoveOntologyAnnotation(
                                ontology, annotation));
                    }
                    for (OWLAnnotation annotation : changed) {
                        assert annotation != null;
                        manager.applyChange(new AddOntologyAnnotation(ontology,
View Full Code Here


    }

    @Test
    public void testCreateOntologyChange() {
        RemoveOntologyAnnotationData data = createData();
        RemoveOntologyAnnotation change = data
                .createOntologyChange(mockOntology);
        assertEquals(mockOntology, change.getOntology());
        assertEquals(mockAnnotation, change.getAnnotation());
    }
View Full Code Here

    }

    @Test
    public void testGetChangeData() {
        RemoveOntologyAnnotationData data = createData();
        RemoveOntologyAnnotation change = new RemoveOntologyAnnotation(
                mockOntology, mockAnnotation);
        assertEquals(change.getChangeData(), data);
    }
View Full Code Here

    @Nonnull
    @Override
    public RemoveOntologyAnnotation createOntologyChange(
            @Nonnull OWLOntology ontology) {
        return new RemoveOntologyAnnotation(ontology, getAnnotation());
    }
View Full Code Here

        List<OWLOntologyChange> changeList = new ArrayList<OWLOntologyChange>();

        for(OWLAnnotation annotation : fromAnnotations) {
            if(!toAnnotations.contains(annotation)) {
                changeList.add(new RemoveOntologyAnnotation(project.getRootOntology(), annotation));
            }
        }
        for(OWLAnnotation annotation : toAnnotations) {
            if(!fromAnnotations.contains(annotation)) {
                changeList.add(new AddOntologyAnnotation(project.getRootOntology(), annotation));
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.RemoveOntologyAnnotation

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.