• Home
  • Advertise
  • Contact Us
  • Free eBooks
  • Infographics
  • About Us


  • Technology
    • Programming
      • Java
      • PHP
      • HTML
      • CSS
      • Javascript
      • XML
      • AJAX
      • JQuery
      • Perl
      • IDE
    • CMS
      • Opencart
      • WordPress
      • Prestashop
      • Magento
    • Database
  • Security
    • Cyber Laws
    • Digital Signature
    • Passwords
    • Reverse Engineering
    • Steganography
    • Forensics
    • Networking
  • E-Commerce
  • Digital Media
    • SEO
    • Social Media
      • Facebook
  • Gadgets
    • Laptops
    • Tablets
    • Just CellPhones
    • Social CellPhones
  • OS
    • Linux
    • Mac
    • Windows
    • iOS
    • Android
  • Courses
    • Development in Android
  • General

Breaking

The supercomputer "Tianhe-2" Takes No. 1 Ranking on 41st TOP500 List

Export tweets in different formats

OWASP - Top 10 Vulnerabilities

New Windows-backdoor deletes MBR

The world's first CPU of 5GHz

Critical vulnerability in 60 + models of CCTV and IP-cameras

Hack a Samsung TV with SmartTV function

The man who "almost broke the Internet"

The search continues for the sixth member of LulzSec

Statistics on the botnet Carna


eBay introduced ql.io, SQL-like language for interacting with web-services

0 Comment
 05 Dec 2011   Posted by synt4x

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...


flattr this!

EBay has submitted a draft ql.io, in which prepared the implementation of a declarative domain-specific language for the formation of the samples, acting as a superstructure over the traditional Web API of existing services. Ql.io language based on the ideas and uses a SQL data manipulation when the format JSON. The project objective is to reduce development time by simplifying the process of working with data through the use of more familiar and intuitive querying mechanisms. The source code ql.io written in JavaScript and distributed under license Apache.

The most justified in ql.io mash applications that manipulate data from disparate web-services, such as combining queries and API Google Maps API eBay. With ql.io data from different Web API, processed into single operations of union and aggregation, as well as about the SELECT statement retrieves data from several different tables. Using ql.io developers no longer need to look at every step on the characteristics of various Web API service, once is enough to determine their specification and in the future to address them through a unified interface.

As a demonstration of ql.io an example of the action to find a product with the conclusion of the seller.The algorithm of this operation is reduced to the conclusion of the eBay database of product identifiers for key words, getting through a single API parameters and determination of requests for applications for the origin through the Google Geocoding API. In the traditional approach to implementing this example would require a volume rather code that sends requests and parsing the output from three different Web API. When using ql.io all of these actions fall within a SELECT-query.

By analogy with the first SQL generated virtual tables, identified with one or another existing Web API.Then, for data processing and querying Web API, you can use the SQL-statement SELECT. While maintaining the possibility of the subqueries, aggregation, sorting and combining the results (JOIN) query to several different tables, behind which may be completely different Web API services. The result is returned in JSON. To add data to the operator is proposed to use INSERT.

Example create a table and a simple SQL-query (in action script can be run on a special demonstration web-console):

format = 'json' ResultSet 'results' ;

select g.geometry.location from google.geocode as G WHERE g.address = 'city Moscow, Red Square ' ;

In addition to increasing the convenience to access Web API and reduce the number of lines of code to implement the logic of the new language also allows you to reduce delays and increase execution speed by reducing the number of requests to the server, perform operations on data aggregation on the server and send the client only needed for the web application data. To optimize the performance of complex queries that require handling large volumes of data, the project prepared a special gateway server (actually performs the task DBMS) that can take the initial loading and processing of data, returning the client has finished result. The components of the gateway ql.io run on top of a server platform node.js. At the gateway load scripts in a format ready ql.io, which are then called from the final web-application after a specified in the script interface WebSocket or HTTP API (web-application to send to the gateway normal http-request with the appropriate parameters).

Spread The Word:

  • Facebook
  • Twitter
  • Pinterest
  • StumbleUpon
  • Google +1
  • Digg
  • Reddit
  • Email
  • LinkedIn
  • Tumblr
    Share This


Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Find Us On Facebook

  • Airtel Hello Tunes

  • Ads.

  • Ads.

  • Shrugs Online


  • More...

    • Advertise
    • Crawl Fashion | Fashion Directory
    • Information Technology Act 2000 Compliance [Sec 43A and Sec 72A]
    • Java Tutorial
    • Netbeans Tutorial
    • Photography Blogs
    • Street Shopping
    • Virus Protection And Internet Security
  • Recent Posts

    • The supercomputer "Tianhe-2" Takes No. 1 Ranking on 41st TOP500 List
    • The world's first CPU of 5GHz
    • Convert PDF to HTML5 without losing formatting
    • Hardware acceleration of H.264 in Firefox
    • How to know the date of Gmail account creation
    • Integrated Graphics Core i7 supports a resolution of 4K Ultra HD
  • Enter your email address to subscribe to "Bytes" Mag & receive THE latest updates on Tech!


Copyright © LetsByteCode Inc.
DMCA.com
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.