Package edu.stanford.smi.protege.server.metaproject

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


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

Related Classes of edu.stanford.smi.protege.server.metaproject.ProjectInstance

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.