Examples of EntityData


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

    }

    //TODO: assume value value type is the same as the property value type, fix later
    public void addPropertyValue(ProjectId projectId, String entityName, String propName, ValueType propValueType,
            String newValue, UserId userId, String operationDescription, AsyncCallback<Void> asyncCallback) {
        EntityData newEntityData = new EntityData(newValue);
        newEntityData.setValueType(propValueType);
        OntologyServiceManager.getInstance().addPropertyValue(projectId, entityName,
                new PropertyEntityData(propName), newEntityData, userId, operationDescription,
                new AddPropertyValueHandler(entityName, propName, asyncCallback));
    }
View Full Code Here

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

                doLayout();

                String selection = com.google.gwt.user.client.Window.Location.getParameter("id");
                if (selection != null) {
                    selection = URL.decodeQueryString(selection);
                    tab.setSelection(UIUtil.createCollection(new EntityData(selection)));
                    break;
                }
            }
        }
    }
View Full Code Here

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

    @Override
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("XRefs");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

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

   
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Cross product");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

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

    @Override
    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Synonyms");
        EntityData entityData = getEntity();
        if(entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

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

    }

    protected void updateTitle() {
        StringBuilder sb = new StringBuilder();
        sb.append("Term ID Information");
        EntityData entityData = getEntity();
        if (entityData != null) {
            sb.append(" for ");
            sb.append(entityData.getBrowserText());
        }
        setTitle(sb.toString());
    }
View Full Code Here

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

    public EntityData getEntityData(OWLEntity entity) {
        if (entity instanceof OWLProperty  || entity instanceof OWLAnnotationProperty) {
            return getPropertyEntityData(entity);
        }
        else {
            EntityData entityData = new EntityData(entity.getIRI().toString());
            String browserText = getBrowserText(entity);
            entityData.setBrowserText(browserText);
            if(entity instanceof OWLClass) {
                entityData.setValueType(ValueType.Cls);
            }
            else if(entity instanceof OWLIndividual) {
                entityData.setValueType(ValueType.Instance);
            }
            return entityData;
        }
    }
View Full Code Here

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

        return annotationValue.accept(new OWLAnnotationValueVisitorEx<EntityData>() {
            public EntityData visit(IRI iri) {
                Set<OWLEntity> entities = project.getRootOntology().getEntitiesInSignature(iri);
                if(entities.isEmpty()) {
                    // Now what?
                    return new EntityData(iri.toString(), iri.toString());
                }
                else {
                    return getEntityData(selectEntity(entities));
                }
            }
View Full Code Here

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

    }
   
    public EntityData getEntityData(OWLLiteral literal) {
        P3LiteralParser literalParser = new P3LiteralParser(literal);
        String p3Format = literalParser.formatP3Literal();
        EntityData entityData = new EntityData(p3Format);
        entityData.setBrowserText(p3Format);
        // The UI seems a bit inconsistent in accepting ~# sometimes it returns it and other times it doesn't and it
        // doesn't seem to accept it in places that return it.
        OWLDatatype dt = literal.getDatatype();
        if(dt.isInteger()) {
            entityData.setValueType(ValueType.Integer);
        }
        else if(dt.isBoolean()) {
            entityData.setValueType(ValueType.Boolean);
        }
        else if(dt.isDouble()) {
            entityData.setValueType(ValueType.Float);
        }
        else if(dt.isFloat()) {
            entityData.setValueType(ValueType.Float);
        }
        else if(dt.isString()) {
            entityData.setValueType(ValueType.String);
        }
        else {
            // Totally unsatisfactory
            entityData.setValueType(ValueType.Any);
        }
        return entityData;
    }
View Full Code Here

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

        return lexicalValue != null && (lexicalValue.equalsIgnoreCase("true") || lexicalValue.equals("1"));
    }


    public EntityData getEntityData(OWLAnonymousIndividual individual) {
        EntityData entityData = new EntityData(individual.getID().getID());
        String browserText = individual.getID().getID();
        entityData.setBrowserText(browserText);
        entityData.setValueType(ValueType.Any);
        return entityData;
    }
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.