Examples of changeIRI()


Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

        axioms2.add(SubAnnotationPropertyOf(annoPropR, annoProp2));
        axioms2.add(AnnotationPropertyRange(annoPropR, indA.getIRI()));
        axioms2.add(AnnotationPropertyDomain(annoPropR, indA.getIRI()));
        OWLEntityRenamer entityRenamer = new OWLEntityRenamer(
                ont.getOWLOntologyManager(), singleton(ont));
        List<OWLOntologyChange> changes = entityRenamer.changeIRI(annoProp,
                annoPropR.getIRI());
        ont.getOWLOntologyManager().applyChanges(changes);
        assertEquals(ont.getAxioms(), axioms2);
        List<OWLOntologyChange> changes2 = entityRenamer.changeIRI(
                annoPropR.getIRI(), annoProp.getIRI());
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

                ont.getOWLOntologyManager(), singleton(ont));
        List<OWLOntologyChange> changes = entityRenamer.changeIRI(annoProp,
                annoPropR.getIRI());
        ont.getOWLOntologyManager().applyChanges(changes);
        assertEquals(ont.getAxioms(), axioms2);
        List<OWLOntologyChange> changes2 = entityRenamer.changeIRI(
                annoPropR.getIRI(), annoProp.getIRI());
        ont.getOWLOntologyManager().applyChanges(changes2);
        assertEquals(ont.getAxioms(), axioms1);
    }
}
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

  public void setName(String name) {
    if(obj instanceof OWLEntity){
      OWLEntityRenamer renamer = getOWLEntityRenamer();
      IRI newIRI = IRI.create(getNameSpace()+name);
      List<OWLOntologyChange> changes = renamer.changeIRI((OWLEntity)obj,newIRI);
      getOWLOntologyManager().applyChanges(changes);
     }
  }
  public ILogicExpression getLogicExpression() {
    return new LogicExpression(this);
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

  public void setName(String name) {
    if(obj instanceof OWLEntity){
      OWLEntityRenamer renamer = getOWLEntityRenamer();
      IRI newIRI = IRI.create(getNameSpace()+name);
      List<OWLOntologyChange> changes = renamer.changeIRI((OWLEntity)obj,newIRI);
      getOWLOntologyManager().applyChanges(changes);
     }
  }
  public ILogicExpression getLogicExpression() {
    return new LogicExpression(this);
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

                    renameMap.put(entity, toIRI);
                }
            }
        }
        OWLEntityRenamer entityRenamer = new OWLEntityRenamer(project.getRootOntology().getOWLOntologyManager(), project.getRootOntology().getImportsClosure());
        List<OWLOntologyChange> changeList = entityRenamer.changeIRI(renameMap);
        builder.addAll(changeList);
        return builder.build();
    }

    @Override
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

        RenderingManager rm = getRenderingManager();
        for(OWLEntity oldEntity : rm.getEntities(oldName)) {
            IRI newNameIRI = rm.getIRI(newName);
            renameMap.put(oldEntity, newNameIRI);
        }
        List<OWLOntologyChange> changes = renamer.changeIRI(renameMap);
        changeListToFill.addAll(changes);
    }

}
View Full Code Here

Examples of org.semanticweb.owlapi.util.OWLEntityRenamer.changeIRI()

            EntityShortForm shortForm,
            EntityCrudContext context,
            OntologyChangeList.Builder<E> changeListBuilder) {
        OWLEntityRenamer renamer = new OWLEntityRenamer(context.getTargetOntology().getOWLOntologyManager(),
                                                        context.getTargetOntology().getImportsClosure());
        List<OWLOntologyChange> changeList = renamer.changeIRI(entity,
                                                               createEntityIRI(shortForm,
                                                                               context.getPrefixedNameExpander()));
        changeListBuilder.addAll(changeList);
    }
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.