swe574-2015fall-group2 / webapp_repo

0 stars 1 forks source link

Tags should be queried from backend #88

Closed mehmetcelikel closed 8 years ago

mehmetcelikel commented 8 years ago

When entering a new tag, queryLabel service should be called and resultlist should be auto compeleted to a dropdown.

queryLabel service will return tag suggestions and context information of each tag.

For example;

{ "status": "success", "result": { "dataList": [ { "label": "Java", "clazz": "Island", "description": " Java is an island of Indonesia. With a population of 135 million (excluding the 3.6 million on the island of Madura which is administered as part of the provinces of Java), Java is the world's most populous island, and one of the most densely-populated places on the globe. Java is the home of 60 percent of the Indonesian population. The Indonesian capital city, Jakarta, is located on western Java. Much of Indonesian history took place on Java. " }, { "label": "Java (programming language)", "clazz": "ProgrammingLanguage", "description": " Java is a programming language originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode that can run on any Java Virtual Machine (JVM) regardless of computer architecture. " }, { "label": "Sun Microsystems", "clazz": "Company", "description": " Sun Microsystems, Inc. was a company that sold :computers, computer components, :computer software, and :information technology services. Sun was founded on February 24, 1982. At its height, Sun headquarters were in Santa Clara, California, on the former west campus of the Agnews Developmental Center. On January 27, 2010, Sun was acquired by Oracle Corporation for US$7.4 billion, based on an agreement signed on April 20, 2009. The following month, Sun Microsystems, Inc. " }, { "label": "JavaScript", "clazz": "ProgrammingLanguage", "description": " JavaScript (sometimes abbreviated JS) is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles. JavaScript was formalized in the ECMAScript language standard and is primarily used in the form of client-side JavaScript, implemented as part of a Web browser in order to provide enhanced user interfaces and dynamic websites. " }, { "label": "Central Java", "clazz": "Settlement", "description": " Central Java (Indonesian: Provinsi Jawa Tengah) is a province of Indonesia. The administrative capital is Semarang. It is one of six provinces on the island of Java. This province is the province of high Human Development in Indonesia and its Points Development Index countries is equivalent to Lebanon. The province of Central Java is 39,800.69 km in area; approximately a quarter of the total land area of Java. " }, { "label": "Virtual machine", "clazz": null, "description": " A virtual machine (VM) is a \"completely isolated guest operating system installation within a normal host operating system\". Modern virtual machines are implemented with either software emulation or hardware virtualization. In most cases, both are implemented together. " }, { "label": "Javanese people", "clazz": "EthnicGroup", "description": "Not to be confused with Japanese people." }, { "label": "Esteghlal F.C.", "clazz": "SoccerClub", "description": " Esteghlal Tehran Football Club is an Iranian professional football club based in Tehran, that plays in the Iran Pro League. Founded in 1945 as Docharkheh Savaran meaning 'The Cyclists' in Persian. In 1949, the club first changed its name to Taj, which means 'Crown' in Persian; a name which quickly became a football powerhouse. They again modified their name to the current Esteghlal meaning 'Independence', after the Islamic Revoloution in 1979. " }, { "label": "Gamelan", "clazz": null, "description": " A gamelan is a traditional musical ensemble from Indonesia, typically from the islands of Java and Bali, featuring a variety of instruments such as metallophones, xylophones, kendang (drums) and gongs; bamboo flutes, bowed and plucked strings. Vocalists may also be included. For most Indonesians, gamelan music is an integral part of Indonesian culture. The term refers more to the set of instruments than to the players of those instruments. " }, { "label": "History of Jakarta", "clazz": null, "description": " The first recorded mention of Jakarta is in the 4th century, when it was a Hindu settlement and port. Ever since, the city had been variously claimed by the Indianized kingdom of Tarumanegara, the Hindu Kingdom of Sunda, the Muslim Sultanate of Banten, the Dutch East Indies, the Empire of Japan, and finally Indonesia. " } ], "ack": false } }