Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Query language
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Computer language used to make queries into databases and information systems}} {{Multiple issues| {{more citations needed|date=October 2010}} {{lacking overview|date=April 2018}} }} A '''query language''', also known as '''data query language''' or '''database query language''' ('''DQL'''), is a [[computer language]] used to make queries in [[database]]s and [[information system]]s. In database systems, query languages rely on strict theory to retrieve information.<ref>{{Cite journal |last=Schmitt |first=Ingo |date=January 2008 |title=QQL: A DB&IR Query Language |url=https://link.springer.com/article/10.1007/s00778-007-0070-1 |journal=The VDLB Journal 17 |volume=17 |pages=39β56 |doi=10.1007/s00778-007-0070-1 |s2cid=207032530 |via=ACM Digital Library|url-access=subscription }}</ref> A well known example is the [[Structured Query Language]] (SQL). ==Types== Broadly, query languages can be classified according to whether they are ''database'' query languages or ''information retrieval'' query languages. The difference is that a '''database query language''' attempts to give factual answers to factual questions, while an '''information retrieval query language''' attempts to find documents containing information that is relevant to an area of inquiry. Other types of query languages include: * '''Full-text'''. The simplest query language is treating all terms as bag of words that are to be matched with the postings in the [[inverted index]] and where subsequently ranking models are applied to retrieve the most relevant documents. Only tokens are defined in the CFG. Web search engines often use this approach. * '''Boolean'''. A query language that also supports the use of the [[logical connective|Boolean operator]]s AND, OR, NOT. * '''Structured'''. A language that supports searching within (a combination of) fields when a document is structured and has been indexed using its document structure. * '''Natural language'''. A query language that supports natural language by parsing the natural language query to a form that can be best used to retrieve relevant documents, for example with [[Question answering]] systems or [[conversational search]]. ==Examples== * [[Attempto Controlled English]] is a query language that is also a [[controlled natural language]].<ref name="FLAIRS 2006">{{cite conference |author1=Norbert E. Fuchs |author2=Kaarel Kaljurand |author3=Gerold Schneider | title = Attempto Controlled English Meets the Challenges of Knowledge Representation, Reasoning, Interoperability and User Interfaces | book-title = FLAIRS 2006 | date = 2006 | url = http://attempto.ifi.uzh.ch/site/publications/papers/FLAIRS0601FuchsN.pdf }}</ref> * [[AQL (ArangoDB Query Language)|AQL]] is a query language for the [[ArangoDB]] native multi-model database system. * [[.QL]] is a proprietary object-oriented query language for querying [[relational database]]s; successor of Datalog; * [[CodeQL]] is the analysis engine used by developers to automate security checks, and by security researchers to perform variant analysis on [[GitHub]]. * [[Contextual Query Language]] (CQL) a formal language for representing queries to [[information retrieval]] systems such as web indexes or bibliographic catalogues. * [[Cypher Query Language|Cypher]] is a query language for the [[Neo4j]] graph database; * [[Data Mining Extensions|DMX]] is a query language for [[data mining]] models; * [[Datalog]] is a query language for [[deductive database]]s; * [[F-logic]] is a declarative object-oriented language for [[deductive database]]s and [[knowledge representation]]. * [[Facebook Query Language|FQL]] enables you to use a [[SQL]]-style interface to query the data exposed by the [[Graph API]]. It provides advanced features not available in the [[Graph API]].<ref>{{cite web|url=https://developers.facebook.com/docs/technical-guides/fql/|title=FQL Overview|work=Facebook Developers|access-date=2013-12-11|archive-url=https://web.archive.org/web/20131218130320/https://developers.facebook.com/docs/technical-guides/fql/|archive-date=2013-12-18|url-status=dead}}</ref> * [[Gellish English]] is a language that can be used for queries in Gellish English Databases, for dialogues (requests and responses) as well as for information modeling and [[knowledge modeling]];<ref>http://gellish.wiki.sourceforge.net/Querying+a+Gellish+English+database{{dead link|date=July 2016 |bot=InternetArchiveBot |fix-attempted=yes }}</ref> * [[Gremlin (programming language)|Gremlin]] is an [[Apache Software Foundation]] graph traversal language for OLTP and OLAP graph systems. * [[GraphQL]] is a data query language developed by [[Facebook]] as an alternate to [[REST]] and ad-hoc [[webservice]] architectures. * [[HTSQL]] is a query language that translates [[HTTP]] queries to [[SQL]]; * [[ISBL]] is a query language for [[PRTV]], one of the earliest relational database management systems; * [[Jaql]] is a functional data processing and query language most commonly used for JSON query processing; * [[Jq (programming language)|jq]] is a functional programming language often used for processing queries against one or more [[JSON]] documents, including very large ones; * [[JSONiq]] is a declarative query language designed for collections of [[JSON]] documents; * [[LDAP]] is an [[application protocol]] for querying and modifying [[directory services]] running over [[TCP/IP]]; * LogiQL is a variant of Datalog and is the query language for [[LogicBlox|the LogicBlox system]]. * [[M Formula language]], a [[Mashup (web application hybrid)|mashup]] query language used in Microsoft's Power Query * [[Molecular Query Language|MQL]] is a [[cheminformatics]] query language for a [[substructure search]] allowing beside nominal properties also numerical properties; * [[MultiDimensional eXpressions|MDX]] is a query language for [[OLAP]] databases; * [[N1QL]] is a [[Couchbase, Inc.|Couchbase]]'s query language finding data in [[Couchbase Server]]s; * [[Object Query Language]] * [[Object Constraint Language|OCL]] (Object Constraint Language). Despite its name, OCL is also an object query language and an [[Object Management Group|OMG]] standard; * [[OPath]], intended for use in querying [[WinFS]] ''Stores''; * [[Poliqarp Query Language]] is a special query language designed to analyze annotated text. Used in the [[Poliqarp]] search engine; * PQL is a [[special-purpose programming language]] for managing [[process model]]s based on information about [[wiktionary:Scenario|scenarios]] that these models describe; * [[PRQL]] [https://prql-lang.org/ PRQL] (Pipelined Relational Query Language) is a modern language for transforming data. Consists of a curated set of orthogonal transformations, which are combined together to form a pipeline. * [[PTQL]] based on relational queries over program traces, allowing programmers to write expressive, declarative queries about program behavior. * [[QUEL query languages|QUEL]] is a [[relational database]] access language, similar in most ways to [[SQL]]; * [[RDQL]] is a [[Resource Description Framework|RDF]] query language; * [[Smiles arbitrary target specification|SMARTS]] is the [[cheminformatics]] standard for a [[substructure search]]; * [[SPARQL]] is a query language for [[Resource Description Framework|RDF]] [[Graph (discrete mathematics)|graphs]]; * [[SQL]] is a well known query language and [[data manipulation language]] for [[relational database]]s; * [[XQuery]] is a query language for [[XML database|XML data sources]]; * [[XPath]] is a declarative language for navigating XML documents; * [[Yahoo! Query Language|YQL]] is an [[SQL]]-like query language created by [[Yahoo!]] * Search engine query languages, e.g., as used by [[Google Search|Google]]<ref> {{cite web | title = Search operators | url = https://support.google.com/websearch/answer/2466433?hl=en | access-date = August 22, 2015 | publisher = Google Inc. }}</ref> or [[Bing (search engine)|Bing]]<ref> {{cite web | title = Bing Query Language | date = 22 June 2010 | url = https://msdn.microsoft.com/en-us/library/ff795667.aspx | access-date = August 22, 2015 | publisher = Microsoft }}</ref> == See also == * [[Data control language]] * [[Data definition language]] * [[Data manipulation language]] * [[Path expression]] == References == {{Reflist}} {{Database}} {{Databases}} {{Computer language}} {{Query languages}} {{Authority control}} [[Category:Query languages| ]] [[Category:Computer languages]] [[Category:Data management]] [[Category:Programming language classification]] [[Category:Database management systems]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Authority control
(
edit
)
Template:Cite conference
(
edit
)
Template:Cite journal
(
edit
)
Template:Cite web
(
edit
)
Template:Computer language
(
edit
)
Template:Database
(
edit
)
Template:Databases
(
edit
)
Template:Dead link
(
edit
)
Template:Multiple issues
(
edit
)
Template:Query languages
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)