src/provider/provider.js
function (node) {
            var text = "";
            var displayAttr = provider.node.getDisplayAttribute(node.label);
            if (node.type === graph.node.NodeTypes.VALUE) {
                if (displayAttr === query.NEO4J_INTERNAL_ID) {
                    text = "" + node.internalID;
                } else {
                    text = "" + node.attributes[displayAttr];
                }
            } else {
                if (node.value !== undefined && node.value.length > 0) {
                    if (displayAttr === query.NEO4J_INTERNAL_ID) {
                        var separator = "";
                        node.value.forEach(function (value) {
                            text += separator + value.internalID;
                            separator = " or ";
                        });
                    } else {
                        var separator = "";
                        node.value.forEach(function (value) {
                            text += separator + value.attributes[displayAttr];
                            separator = " or ";
                        });
                    }
                } else {
                    text = node.label;
                }
            }
            return text;
        }
function (node) {
            var text = "";
            var displayAttr = provider.node.getDisplayAttribute(node.label);
            if (node.type === graph.node.NodeTypes.VALUE) {
                if (displayAttr === query.NEO4J_INTERNAL_ID) {
                    text = "" + node.internalID;
                } else {
                    text = "" + node.attributes[displayAttr];
                }
            } else {
                if (node.value !== undefined && node.value.length > 0) {
                    if (displayAttr === query.NEO4J_INTERNAL_ID) {
                        var separator = "";
                        node.value.forEach(function (value) {
                            text += separator + value.internalID;
                            separator = " or ";
                        });
                    } else {
                        var separator = "";
                        node.value.forEach(function (value) {
                            text += separator + value.attributes[displayAttr];
                            separator = " or ";
                        });
                    }
                } else {
                    text = node.label;
                }
            }
            return text;
        }
function ( node ) { var text = "" ; var displayAttr = provider . node . getDisplayAttribute ( node . label ) ; if ( node . type === graph . node . NodeTypes . VALUE ) { if ( displayAttr === query . NEO4J_INTERNAL_ID ) { text = "" + node . internalID ; } else { text = "" + node . attributes [ displayAttr ] ; } } else { if ( node . value !== undefined && node . value . length > 0 ) { if ( displayAttr === query . NEO4J_INTERNAL_ID ) { var separator = "" ; node . value . forEach ( function ( value ) { text += separator + value . internalID ; separator = " or " ; } ) ; } else { var separator = "" ; node . value . forEach ( function ( value ) { text += separator + value . attributes [ displayAttr ] ; separator = " or " ; } ) ; } } else { text = node . label ; } } return text ; }
Function used to return a descriptive text representation of a link.
This representation should be more complete than getTextValue and can
contain semantic data.
This function is used for example to generate the label in the query
viewer.

The default behavior is to return the getTextValue not truncated.

@param node the node to represent as text.
@returns {string} the text semantic representation of the node.
Function used to return a descriptive text representation of a link . This representation should be more complete than getTextValue and can contain semantic data . This function is used for example to generate the label in the query viewer .