Semantic queries allow for queries and analytics of associative and
contextual nature. Semantic queries enable the retrieval of both explicitly and implicitly derived information based on
syntactic
In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure ( constituenc ...
,
semantic
Semantics (from grc, σημαντικός ''sēmantikós'', "significant") is the study of reference, meaning, or truth. The term can be used to refer to subfields of several distinct disciplines, including philosophy, linguistics and comput ...
and
structural information contained in data. They are designed to deliver precise results (possibly the distinctive selection of one single piece of information) or to answer more
fuzzy and wide open questions through
pattern matching
In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually has to be exact: "either it will or will not be ...
and
digital reasoning
Digital Reasoning is an American company headquartered in Franklin, Tennessee. It offers cognitive computing services to intelligence agencies, financial institutions and healthcare organizations in the United States.
History
Digital Reasoning wa ...
.
Semantic queries work on
named graphs,
linked data
In computing, linked data (often capitalized as Linked Data) is structured data which is interlinked with other data so it becomes more useful through semantic queries. It builds upon standard Web technologies such as HTTP, RDF and URIs, but ...
or
triples
TripleS (stylized as tripleS; Help:IPA/English, /ˈtɹɪpəl:ɛs/; ) is a South Korean girl group formed by MODHAUS. They aim to be the world's first decentralized K-pop idol group. The members will rotate between the group, sub-unit, and solo ac ...
. This enables the query to process the actual
relationships between information and ''infer'' the answers from the ''network of data''. This is in contrast to
semantic search, which uses
semantics
Semantics (from grc, σημαντικός ''sēmantikós'', "significant") is the study of reference, meaning, or truth. The term can be used to refer to subfields of several distinct disciplines, including philosophy, linguistics and compu ...
(meaning of language constructs) in
unstructured text to produce a better search result. (See
natural language processing
Natural language processing (NLP) is an interdisciplinary subfield of linguistics, computer science, and artificial intelligence concerned with the interactions between computers and human language, in particular how to program computers to proc ...
.)
From a technical point of view, semantic queries are precise relational-type operations much like a
database query. They work on structured data and therefore have the possibility to utilize comprehensive features like operators (e.g. >, < and =), namespaces,
pattern matching
In computer science, pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually has to be exact: "either it will or will not be ...
,
subclassing,
transitive relation
In mathematics, a relation on a set is transitive if, for all elements , , in , whenever relates to and to , then also relates to . Each partial order as well as each equivalence relation needs to be transitive.
Definition
A hom ...
s,
semantic rules and contextual
full text search. The
semantic web technology stack of the
W3C is offering
SPARQL to formulate semantic queries in a syntax similar to
SQL. Semantic queries are used in
triplestores,
graph databases,
semantic wikis, natural language and
artificial intelligence
Artificial intelligence (AI) is intelligence—perceiving, synthesizing, and inferring information—demonstrated by machine
A machine is a physical system using Power (physics), power to apply Force, forces and control Motion, moveme ...
systems.
Background
Relational database
A relational database is a (most commonly digital) database based on the relational model of data, as proposed by E. F. Codd in 1970. A system used to maintain relational databases is a relational database management system (RDBMS). Many relatio ...
s represent all relationships between data in an ''implicit'' manner only.
For example, the relationships between customers and products (stored in two content-tables and connected with an additional link-table) only come into existence in a query statement (
SQL in the case of relational databases) written by a developer. Writing the query demands exact knowledge of the
database schema
The database schema is the structure of a database described in a formal language supported by the database management system (DBMS). The term " schema" refers to the organization of data as a blueprint of how the database is constructed (divid ...
.
Linked-Data represent all relationships between data in an ''explicit'' manner. In the above example, no query code needs to be written. The correct product for each customer can be fetched automatically. Whereas this simple example is trivial, the real power of linked-data comes into play when a ''network of information'' is created (customers with their geo-spatial information like city, state and country; products with their categories within sub- and super-categories). Now the system can automatically answer more complex queries and analytics that look for the connection of a particular location with a product category. The development effort for this query is omitted. Executing a semantic query is conducted by ''walking'' the network of information and finding matches (also called ''Data Graph Traversal'').
Another important aspect of semantic queries is that the type of the relationship can be used to incorporate intelligence into the system. The relationship between a customer and a product has a fundamentally different nature than the relationship between a neighbourhood and its city. The latter enables the semantic query engine to ''infer'' that a customer ''living in Manhattan is also living in New York City'' whereas other relationships might have more complicated patterns and "contextual analytics". This process is called inference or reasoning and is the ability of the software to derive new information based on given facts.
Articles
*
*
*
*
*
*
*
*
*
*
See also
*
Attention
Attention is the behavioral and cognitive process of selectively concentrating on a discrete aspect of information, whether considered subjective or objective, while ignoring other perceivable information. William James (1890) wrote that "Att ...
*
Dataspaces
*
Knowledge Representation
Knowledge representation and reasoning (KRR, KR&R, KR²) is the field of artificial intelligence (AI) dedicated to representing information about the world in a form that a computer system can use to solve complex tasks such as diagnosing a medic ...
*
Linked Data
In computing, linked data (often capitalized as Linked Data) is structured data which is interlinked with other data so it becomes more useful through semantic queries. It builds upon standard Web technologies such as HTTP, RDF and URIs, but ...
*
Ontology alignment
*
Philosophy
*
Semantic Integration
*
Semantic publishing
*
Semantics of Business Vocabulary and Business Rules
*
SPARQL
References
{{reflist
External links
W3C Semantic Web Standards - Query
Data management
Query languages
Semantic Web