This article includes a list of references, related reading or external links, but its sources remain unclear because it lacks inline citations. (December 2012) (Learn how and when to remove this template message)
The topic of this article may not meet Wikipedia's general notability guideline. (December 2012) (Learn how and when to remove this template message)
|Paradigm||multi-paradigm, logic-paradigm, object-oriented-paradigm|
|Typing discipline||static, strong|
.QL (pronounced "dot-cue-el") is an object-oriented query language used to retrieve data from relational database management systems. It is reminiscent of the standard query language SQL and the object-oriented programming language Java. .QL is an object-oriented variant of a logical query language called Datalog. Hierarchical data can therefore be naturally queried in .QL in a recursive manner.
Queries written in .QL are optimised, compiled into SQL and can then be executed on any major relational database management system. .QL query language is being used in SemmleCode to query a relational representation of Java programs.
.QL is developed at Semmle Limited and is based on the company's proprietary technology.
.QL has several language features to make queries concise, intuitive and reusable:
The sample query below illustrates use of .QL to query a Java program. This is how one would select all classes that contain more than ten public methods:
1 from Class c, int numOfMethods 2 where numOfMethods = count(Method m| m.getDeclaringType=c 3 and m.hasModifier("public")) 4 and numOfMethods > 10 5 select c.getPackage, c, numOfMethods
In fact, this query selects not only all classes with more than ten public methods, but also their corresponding packages and the number of methods each class has.
Manage research, learning and skills at defaultLogic. Create an account using LinkedIn or facebook to manage and organize your Digital Marketing and Technology knowledge. defaultLogic works like a shopping cart for information -- helping you to save, discuss and share.Visit defaultLogic's partner sites below: