Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.AddOntologyAnnotation


     *
     * @param annotation
     *        the annotation
     */
    protected void addOntologyAnnotation(@Nonnull OWLAnnotation annotation) {
        applyChange(new AddOntologyAnnotation(ontology, annotation));
    }
View Full Code Here


                for (OWLImportsDeclaration decl : header.getImportsDeclarations()) {
                    ont.getOWLOntologyManager().makeLoadImportRequest(decl, configuration);
                    imports.add(new AddImport(ont, decl));
                }
                for (OWLAnnotation anno : header.getAnnotations()) {
                    ontologyAnnotations.add(new AddOntologyAnnotation(ont, anno));
                }
                ontologyID = header.getOntologyID();
            }
            else if (section.equalsIgnoreCase(CLASS)) {
                axioms.addAll(parseClassFrame());
View Full Code Here

                else {
                    // Ontology annotations
                    OWLLiteral con = getDataFactory().getOWLLiteral(value);
                    OWLAnnotationProperty property = getDataFactory().getOWLAnnotationProperty(getIRI(tag));
                    OWLAnnotation anno = getDataFactory().getOWLAnnotation(property, con);
                    owlOntologyManager.applyChange(new AddOntologyAnnotation(ontology, anno));
                }
            }
            else if (currentId != null) {
                // Add as annotation
                if (configuration.isLoadAnnotationAxioms()) {
View Full Code Here

        decl = ImportsDeclaration();
        applyChange(new AddImport(ontology, decl));
        man.makeLoadImportRequest(decl, configuration);
      } else if (jj_2_6(2)) {
        anno = Annotation();
        applyChange(new AddOntologyAnnotation(ontology, anno));
        currentAnnotations.clear();
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
View Full Code Here

    }


    @Override
  public void handleChild(OWLAnnotationElementHandler handler) throws OWLXMLParserException {
        getOWLOntologyManager().applyChange(new AddOntologyAnnotation(getOntology(), handler.getOWLObject()));
    }
View Full Code Here

    protected void setOntologyID(OWLOntologyID ontologyID) {
        applyChange(new SetOntologyID(ontology, ontologyID));
    }

    protected void addOntologyAnnotation(OWLAnnotation annotation) {
        applyChange(new AddOntologyAnnotation(ontology, annotation));
    }
View Full Code Here

                            for (OWLImportsDeclaration decl : importedOntology.getImportsDeclarations()) {
                                man.applyChange(new AddImport(getConsumer().getOntology(), decl));
                            }
                            for (OWLAnnotation anno : importedOntology.getAnnotations()) {
                                man.applyChange(new AddOntologyAnnotation(getConsumer().getOntology(), anno));
                            }
                            for (OWLAxiom ax : importedOntology.getAxioms()) {
                                getConsumer().addAxiom(ax);
                            }
                            man.removeOntology(importedOntology);
View Full Code Here

                changeList.add(new RemoveOntologyAnnotation(project.getRootOntology(), annotation));
            }
        }
        for(OWLAnnotation annotation : toAnnotations) {
            if(!fromAnnotations.contains(annotation)) {
                changeList.add(new AddOntologyAnnotation(project.getRootOntology(), annotation));
            }
        }
        return new FixedChangeListGenerator<Set<OWLAnnotation>>(changeList) {
            @Override
            public Set<OWLAnnotation> getRenamedResult(Set<OWLAnnotation> result, RenameMap renameMap) {
View Full Code Here

    protected void setOntologyID(OWLOntologyID ontologyID) {
        applyChange(new SetOntologyID(ontology, ontologyID));
    }

    protected void addOntologyAnnotation(OWLAnnotation annotation) {
        applyChange(new AddOntologyAnnotation(ontology, annotation));
    }
View Full Code Here

TOP

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

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.