Package edu.stanford.bmir.protege.web.client.rpc.data

Examples of edu.stanford.bmir.protege.web.client.rpc.data.EntityData


        bpRefData.setOntologyVersionId(ontologyVersionId);
        bpRefData.setOntologyName(null);
        bpRefData.setPreferredName(preferredName);
        bpRefData.setBpUrl(null);//do not use the BP rest URL to find out more information about this concept

        EntityData oldValueEntityData = new EntityData(oldInstanceName);
        OntologyServiceManager.getInstance().replaceExternalReference(
                projectId,
                currentEntity. getName(),
                bpRefData,
                oldValueEntityData,
View Full Code Here


        }
        return null;
    }

    public String getNodeClsName(Node node) {
        EntityData data = (EntityData) node.getUserObject();
        return data.getName();
    }
View Full Code Here

    protected void displayValues(Collection<EntityData> values) {
        if (values == null || values.size() == 0) {
            field.setValue("");
        } else {
            if (values.size() == 1) {
                EntityData value = values.iterator().next();
                String displayText = UIUtil.getDisplayText(value);
                field.setValue(displayText);
            } else {
                field.setValue(UIUtil.prettyPrintList(values));
            }
View Full Code Here

            for(OWLObjectPropertyAssertionAxiom ax : ont.getObjectPropertyAssertionAxioms(ind)) {
                if (!ax.getProperty().isAnonymous()) {
                    RenderingManager rm = getRenderingManager();
                    PropertyEntityData propData = rm.getPropertyEntityData(ax.getProperty().asOWLObjectProperty());
                    OWLIndividual object = ax.getObject();
                    EntityData valueData;
                    if(object.isAnonymous()) {
                        valueData = rm.getEntityData(object.asOWLAnonymousIndividual());
                    }
                    else {
                        valueData = rm.getEntityData(object.asOWLNamedIndividual());
                    }
                    EntityData subjectData = rm.getEntityData(ind);
                    result.add(new Triple(subjectData, propData, valueData));
                }
            }
            for(OWLDataPropertyAssertionAxiom ax : ont.getDataPropertyAssertionAxioms(ind)) {
                RenderingManager rm = getRenderingManager();
                PropertyEntityData propData = rm.getPropertyEntityData(ax.getProperty().asOWLDataProperty());
                EntityData subjectData = rm.getEntityData(ind);
                result.add(new Triple(subjectData, propData, rm.getEntityData(ax.getObject())));
            }

        }
        return result;
View Full Code Here

        }
        return result;
    }

    private ChangeData createChangeDataFromRevision(OWLEntity entity, Revision changeList) {
        EntityData entityData = project.getRenderingManager().getEntityData(entity);
        return new ChangeData(entityData, changeList.getUserId().getUserName(), changeList.getHighLevelDescription(project), new Date(changeList.getTimestamp()));

    }
View Full Code Here

            long ts = changeList.getTimestamp();
            if (ts >= fromTimestamp && ts <= toTimestamp) {
                Set<OWLEntity> changeEntities = changeList.getEntities(project);
                for (OWLEntity entity : entites) {
                    if (changeEntities.contains(entity)) {
                        EntityData entityData = project.getRenderingManager().getEntityData(entity);
                        result.add(new ChangeData(entityData, changeList.getUserId().getUserName(), changeList.getHighLevelDescription(project, entity), new Date(changeList.getTimestamp())));
                    }
                }
            }
        }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.rpc.data.EntityData

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.