<type 'exceptions.UnboundLocalError'> | Python 2.7.12: /usr/bin/python Thu Aug 22 17:11:52 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/sandbox/public_html/cgi-bin/Story01.py in |
510 |
511 displayData( db, project, account, pwd, node, NetworkLimit ) |
512 |
513 |
=> 514 main() |
main = <function main> |
/home/sandbox/public_html/cgi-bin/Story01.py in main() |
509 if ( NetworkLimit < 1 ): NetworkLimit = 100 |
510 |
=> 511 displayData( db, project, account, pwd, node, NetworkLimit ) |
512 |
513 |
global displayData = <function displayData>, db = 'hanyang2022', project = 'hanyang2022', account = 'guest', pwd = 'guest', node = '\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ', NetworkLimit = 100 |
/home/sandbox/public_html/cgi-bin/Story01.py in displayData(database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ', NetworkLimit=100) |
483 |
484 if( count <= NetworkLimit ): |
=> 485 displayNetwork( nodelist, edgelist, database, project, account, password, node ) |
486 else: |
487 displayList( nodelist, edgelist, database, project, account, password, node ) |
global displayNetwork = <function displayNetwork>, nodelist = [{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ub9cc\ub450\uacfc.glb', 'label': u'\ub9cc\ub450\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacc4\ud53c\uac00\ub8e8', 'infoUrl': None, 'label': u'\uacc4\ud53c\uac00\ub8e8 \u6842\u76ae\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacfc\uc790', 'infoUrl': None, 'label': u'\uacfc\uc790(\u83d3\u5b50)'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uad81\uc911\uc5f0\ud5a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\uc911\uc5f0\ud5a5', 'label': u'\uad81\uc911\uc5f0\ud5a5(\u5bae\u4e2d\u5bb4\u4eab)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uae50\uc7a3', 'infoUrl': None, 'label': u'\uae50\uc7a3 \u5be6\u6822\u5b50'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uafc0-\u6df8', 'infoUrl': None, 'label': u'\uafc0 \u6df8'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c.jpg', 'id': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'label': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548(\u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\uc9c4\ucc2c29_\ub300\ucd94.jpg', 'id': u'\ub300\ucd94', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ucd94', 'label': u'\ub300\ucd94 \u5927\u68d7'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc804\u2022\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u6bbf\u2022\u4e2d\u5bae\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-005.png', 'id': u'\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub9cc\ub450\uacfc', 'label': u'\ub9cc\ub450\uacfc'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ub9d0\ub9b0\ubc24', 'infoUrl': None, 'label': u'\ub9d0\ub9b0\ubc24 \u9ec3\u6817'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ubc00\uac00\ub8e8', 'infoUrl': None, 'label': u'\ubc00\uac00\ub8e8 \u771e\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc0ac\ud0d5', 'infoUrl': None, 'label': u'\uc0ac\ud0d5 \u7802\u7cd6'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc5b4\uc0c1\uac00\uac00', 'infoUrl': None, 'label': u'\uc5b4\uc0c1\uac00\uac00 \u5fa1\u5e8a\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc720\ubc00\uacfc', 'infoUrl': None, 'label': u'\uc720\ubc00\uacfc(\u6cb9\u871c\u679c)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc870\uacfc\uac00\uac00', 'infoUrl': None, 'label': u'\uc870\uacfc\uac00\uac00 \u9020\u679c\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, ...], edgelist = [{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub9cc\ub450\uacfc', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub300\ucd94'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ub300\ucd94', 'target': u'\uad81\uc911\uc5f0\ud5a5'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': u'1\ucc993\ucd0c', 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub9cc\ub450\uacfc', 'target': u'3d-\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uacc4\ud53c\uac00\ub8e8'}, {'attribute': None, 'relation': u'type', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uacfc\uc790'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uad81\uc911\uc5f0\ud5a5'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uae50\uc7a3'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uafc0-\u6df8'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ub300\ucd94'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ub9d0\ub9b0\ubc24'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ubc00\uac00\ub8e8'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uc0ac\ud0d5'}, {'attribute': None, 'relation': u'type', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uc720\ubc00\uacfc'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ucc38\uae30\ub984'}, ...], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ' |
/home/sandbox/public_html/cgi-bin/Story01.py in displayNetwork(nodelist=[{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ub9cc\ub450\uacfc.glb', 'label': u'\ub9cc\ub450\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacc4\ud53c\uac00\ub8e8', 'infoUrl': None, 'label': u'\uacc4\ud53c\uac00\ub8e8 \u6842\u76ae\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacfc\uc790', 'infoUrl': None, 'label': u'\uacfc\uc790(\u83d3\u5b50)'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uad81\uc911\uc5f0\ud5a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\uc911\uc5f0\ud5a5', 'label': u'\uad81\uc911\uc5f0\ud5a5(\u5bae\u4e2d\u5bb4\u4eab)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uae50\uc7a3', 'infoUrl': None, 'label': u'\uae50\uc7a3 \u5be6\u6822\u5b50'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uafc0-\u6df8', 'infoUrl': None, 'label': u'\uafc0 \u6df8'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c.jpg', 'id': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'label': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548(\u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\uc9c4\ucc2c29_\ub300\ucd94.jpg', 'id': u'\ub300\ucd94', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ucd94', 'label': u'\ub300\ucd94 \u5927\u68d7'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc804\u2022\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u6bbf\u2022\u4e2d\u5bae\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-005.png', 'id': u'\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub9cc\ub450\uacfc', 'label': u'\ub9cc\ub450\uacfc'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ub9d0\ub9b0\ubc24', 'infoUrl': None, 'label': u'\ub9d0\ub9b0\ubc24 \u9ec3\u6817'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ubc00\uac00\ub8e8', 'infoUrl': None, 'label': u'\ubc00\uac00\ub8e8 \u771e\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc0ac\ud0d5', 'infoUrl': None, 'label': u'\uc0ac\ud0d5 \u7802\u7cd6'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc5b4\uc0c1\uac00\uac00', 'infoUrl': None, 'label': u'\uc5b4\uc0c1\uac00\uac00 \u5fa1\u5e8a\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc720\ubc00\uacfc', 'infoUrl': None, 'label': u'\uc720\ubc00\uacfc(\u6cb9\u871c\u679c)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc870\uacfc\uac00\uac00', 'infoUrl': None, 'label': u'\uc870\uacfc\uac00\uac00 \u9020\u679c\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, ...], edgelist=[{'attribute': None, 'relation': u'hasReferenceNote', 'source': u'3d-\ub9cc\ub450\uacfc', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub300\ucd94'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ub300\ucd94', 'target': u'\uad81\uc911\uc5f0\ud5a5'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': u'1\ucc993\ucd0c', 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasPart', 'source': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'target': u'\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'isShownBy', 'source': u'\ub9cc\ub450\uacfc', 'target': u'3d-\ub9cc\ub450\uacfc'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uacc4\ud53c\uac00\ub8e8'}, {'attribute': None, 'relation': u'type', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uacfc\uc790'}, {'attribute': None, 'relation': u'isUsedIn', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uad81\uc911\uc5f0\ud5a5'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uae50\uc7a3'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uafc0-\u6df8'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ub300\ucd94'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ub9d0\ub9b0\ubc24'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ubc00\uac00\ub8e8'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uc0ac\ud0d5'}, {'attribute': None, 'relation': u'type', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\uc720\ubc00\uacfc'}, {'attribute': None, 'relation': u'hasIngredient', 'source': u'\ub9cc\ub450\uacfc', 'target': u'\ucc38\uae30\ub984'}, ...], database='hanyang2022', project='hanyang2022', account='guest', password='guest', node='\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ') |
342 if not line: break |
343 if( '#YourData' == line.strip()): |
=> 344 printNodes( nodelist, database, project, account, password, node ) |
345 printLinks( edgelist, node, account ) |
346 else: |
global printNodes = <function printNodes>, nodelist = [{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ub9cc\ub450\uacfc.glb', 'label': u'\ub9cc\ub450\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacc4\ud53c\uac00\ub8e8', 'infoUrl': None, 'label': u'\uacc4\ud53c\uac00\ub8e8 \u6842\u76ae\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacfc\uc790', 'infoUrl': None, 'label': u'\uacfc\uc790(\u83d3\u5b50)'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uad81\uc911\uc5f0\ud5a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\uc911\uc5f0\ud5a5', 'label': u'\uad81\uc911\uc5f0\ud5a5(\u5bae\u4e2d\u5bb4\u4eab)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uae50\uc7a3', 'infoUrl': None, 'label': u'\uae50\uc7a3 \u5be6\u6822\u5b50'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uafc0-\u6df8', 'infoUrl': None, 'label': u'\uafc0 \u6df8'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c.jpg', 'id': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'label': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548(\u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\uc9c4\ucc2c29_\ub300\ucd94.jpg', 'id': u'\ub300\ucd94', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ucd94', 'label': u'\ub300\ucd94 \u5927\u68d7'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc804\u2022\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u6bbf\u2022\u4e2d\u5bae\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-005.png', 'id': u'\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub9cc\ub450\uacfc', 'label': u'\ub9cc\ub450\uacfc'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ub9d0\ub9b0\ubc24', 'infoUrl': None, 'label': u'\ub9d0\ub9b0\ubc24 \u9ec3\u6817'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ubc00\uac00\ub8e8', 'infoUrl': None, 'label': u'\ubc00\uac00\ub8e8 \u771e\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc0ac\ud0d5', 'infoUrl': None, 'label': u'\uc0ac\ud0d5 \u7802\u7cd6'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc5b4\uc0c1\uac00\uac00', 'infoUrl': None, 'label': u'\uc5b4\uc0c1\uac00\uac00 \u5fa1\u5e8a\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc720\ubc00\uacfc', 'infoUrl': None, 'label': u'\uc720\ubc00\uacfc(\u6cb9\u871c\u679c)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc870\uacfc\uac00\uac00', 'infoUrl': None, 'label': u'\uc870\uacfc\uac00\uac00 \u9020\u679c\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, ...], database = 'hanyang2022', project = 'hanyang2022', account = 'guest', password = 'guest', node = '\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ' |
/home/sandbox/public_html/cgi-bin/Story01.py in printNodes(nodelist=[{'class': u'Multimedia', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/3DModel.png', 'id': u'3d-\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/~sandbox/cgi-bin/3dm/ModelView2.py?url=dh.aks.ac.kr/hanyang2/glb/\uc74c\uc2dd/3D-\ub9cc\ub450\uacfc.glb', 'label': u'\ub9cc\ub450\uacfc 3D \ubaa8\ub378'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacc4\ud53c\uac00\ub8e8', 'infoUrl': None, 'label': u'\uacc4\ud53c\uac00\ub8e8 \u6842\u76ae\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uacfc\uc790', 'infoUrl': None, 'label': u'\uacfc\uc790(\u83d3\u5b50)'}, {'class': u'Concept', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/concept2.png', 'id': u'\uad81\uc911\uc5f0\ud5a5', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uad81\uc911\uc5f0\ud5a5', 'label': u'\uad81\uc911\uc5f0\ud5a5(\u5bae\u4e2d\u5bb4\u4eab)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uadfc\uc815\uc804_\uc9c4\ucc2c-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': None, 'label': u'\uadfc\uc815\uc804 \uc9c4\ucc2c \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uae50\uc7a3', 'infoUrl': None, 'label': u'\uae50\uc7a3 \u5be6\u6822\u5b50'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uafc0-\u6df8', 'infoUrl': None, 'label': u'\uafc0 \u6df8'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c.jpg', 'id': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'label': u'\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548(\u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848)'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc74c\uc2dd/\uc9c4\ucc2c29_\ub300\ucd94.jpg', 'id': u'\ub300\ucd94', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub300\ucd94', 'label': u'\ub300\ucd94 \u5927\u68d7'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc655\ub300\ube44\uc804\uc9c4\uc5b4\ucc2c\uc548 \u5927\u738b\u5927\u5983\u6bbf\u9032\u5fa1\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\ub9cc\uacbd\uc804_\uc815\uc77c\uc9c4\ucc2c-\ub300\uc804-\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548', 'infoUrl': None, 'label': u'\ub9cc\uacbd\uc804 \uc815\uc77c\uc9c4\ucc2c \ub300\uc804\u2022\uc911\uad81\uc804\uc9c4\uc5b4\ubcc4\ucc2c\uc548 \u5927\u6bbf\u2022\u4e2d\u5bae\u6bbf\u9032\u5fa1\u5225\u994c\u6848'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/\uc7ac\ud604\ub300\uc0c1/\uc74c\uc2dd-005.png', 'id': u'\ub9cc\ub450\uacfc', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\ub9cc\ub450\uacfc', 'label': u'\ub9cc\ub450\uacfc'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ub9d0\ub9b0\ubc24', 'infoUrl': None, 'label': u'\ub9d0\ub9b0\ubc24 \u9ec3\u6817'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\ubc00\uac00\ub8e8', 'infoUrl': None, 'label': u'\ubc00\uac00\ub8e8 \u771e\u672b'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc0ac\ud0d5', 'infoUrl': None, 'label': u'\uc0ac\ud0d5 \u7802\u7cd6'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc5b4\uc0c1\uac00\uac00', 'infoUrl': None, 'label': u'\uc5b4\uc0c1\uac00\uac00 \u5fa1\u5e8a\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/food2.png', 'id': u'\uc720\ubc00\uacfc', 'infoUrl': None, 'label': u'\uc720\ubc00\uacfc(\u6cb9\u871c\u679c)'}, {'class': u'Place', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/architecture.png', 'id': u'\uc870\uacfc\uac00\uac00', 'infoUrl': None, 'label': u'\uc870\uacfc\uac00\uac00 \u9020\u679c\u5047\u5bb6'}, {'class': u'Food', 'iconUrl': u'http://dh.aks.ac.kr/hanyang2/icon/menu.png', 'id': u'\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'infoUrl': u'http://dh.aks.ac.kr/hanyang2/wiki/index.php/\uc911\ud654\uc804_\uc9c4\uc5f0-\ub300\uc804-\uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548', 'label': u'\uc911\ud654\uc804 \uc9c4\uc5f0 \ub300\uc804 \uc9c4\uc5b4\ub300\ud0c1\ucc2c\uc548(\u5927\u6bbf \u9032\u5fa1\u5927\u5353\u994c\u6848)'}, ...], database='hanyang2022', project='hanyang2022', account='guest', password='guest', subject='\xeb\xa7\x8c\xeb\x91\x90\xea\xb3\xbc ') |
225 |
226 #add show-all-story-nodes button |
=> 227 if( subjectClass == 'Story' ) : |
228 print " nodesArray.push({" |
229 print " id: 'switch1'," |
subjectClass undefined |
<type 'exceptions.UnboundLocalError'>: local variable 'subjectClass' referenced before assignment
args =
("local variable 'subjectClass' referenced before assignment",)
message =
"local variable 'subjectClass' referenced before assignment"