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

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


        return true;
    }
   
   
    public OWLObject getOWLObject(EntityData entityData) {
        ValueType valueType = entityData.getValueType();
        if(valueType == null) {
            // Now what?  Totally and utterly horrible.
            // So ugly.
            if(entityData instanceof PropertyEntityData) {
                valueType = ValueType.Property;
View Full Code Here


        if(!lang.isEmpty()) {
            return df.getOWLLiteral(lexicalValue, lang);
        }
        else {
            OWLDatatype datatype = df.getRDFPlainLiteral();
            ValueType valueType = entityData.getValueType();
            if(valueType != null) {
                switch (valueType) {
                    case Boolean:
                        datatype = df.getBooleanOWLDatatype();
                        break;
View Full Code Here

    protected void onCreateNote() {
        String appliesToId = record == null ? entityData.getName() : record.getAsString(BioPortalNoteConstants.ID);
        String appliesToType = null;
        if (record == null) { // new note
            ValueType valueType = UIUtil.guessValueType(entityData);
            valueType = valueType == null ? ValueType.Instance : valueType;
            appliesToType = BioPortalNoteConstants.VALUE_TYPE_2_ENTITY_TYPE.get(valueType);
        } else { //reply
            appliesToType = BioPortalNoteConstants.ENTITY_TYPE_NOTE;
        }
View Full Code Here

        }
        return gridRowListener;
    }

    private boolean isStringOrAnyValueType(EntityData prop) {
        ValueType vt = prop.getValueType();
        return vt == null || ValueType.String.equals(vt) || ValueType.Literal.equals(vt) || ValueType.Any.equals(vt);
    }
View Full Code Here

                        int rowIndex, int colIndex) {
                    // special handling rdfs:Literal

                    // TODO:
                    EntityData rowEntity = (EntityData) record.getAsObject(VALUE);
                    ValueType valueTypeT = rowEntity == null ? null : rowEntity.getValueType();

                    String oldPropValue = null;
                    String newPropValue = null;

                    String newValueS = newValueO.toString();
View Full Code Here

        String value = valueEd.getName();
        if (valueEd == null || value == null) {
            return; //nothing to delete
        }

        ValueType valueType = valueEd.getValueType();
        String lang = record.getAsString(LANGUAGE);
        if (lang != null && lang.length() > 0) {
            valueType = ValueType.Literal; //TODO: check if necessary
        }
        PropertyEntityData prop = (PropertyEntityData) (record.getAsObject(PROPERTY));
View Full Code Here

    static final String OWL_DATA_PROPERTY_ID = "http://www.w3.org/2002/07/owl#DataProperty";

    static final String OWL_OBJ_PROPERTY_ID = "http://www.w3.org/2002/07/owl#ObjectProperty";

    public static ValueType guessValueType(EntityData entityData) {
        ValueType valueType = entityData.getValueType();
        if (valueType != null) {
            return valueType;
        }

        if (entityData instanceof SubclassEntityData) {
View Full Code Here

TOP

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

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.