Examples of ProjectInstance


Examples of edu.stanford.smi.protege.server.metaproject.ProjectInstance

    }

    public void setInTrash(ProjectId projectId, boolean b) {
        try {
            WRITE_LOCK.lock();
            ProjectInstance pi = getProjectInstance(projectId);
            Instance instance = pi.getProtegeInstance();
            KnowledgeBase knowledgeBase = instance.getKnowledgeBase();
            Slot inTrashSlot = knowledgeBase.getSlot(IN_TRASH_SLOT_NAME);
            if (inTrashSlot != null) {
                instance.setOwnSlotValue(inTrashSlot, b);
            }
View Full Code Here

Examples of edu.stanford.smi.protege.server.metaproject.ProjectInstance

public class Protege3MetaProjectDocumentIRIProvider implements DocumentIRIProvider {

    public IRI getDocumentIRI(ProjectId projectId) {
        MetaProjectManager mpm = MetaProjectManager.getManager();
        MetaProject metaProject = mpm.getMetaProject();
        ProjectInstance pi = metaProject.getProject(projectId.getId());
        String location = pi.getLocation();
        File fileSystemLocation = new File(location.substring(0, location.length() - ".pprj".length()));
        return IRI.create(fileSystemLocation);
    }
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.