Semantic web and the knowledge graph

The semantic web is not to be confused with web3 (as I did). The semantic web is about describing the web of connections between ideas and objects.

Semantic web and the knowledge graph
A web, not semantic but shows the point

I wrote about metadata and that touches on the semantic web. With the semantic web, meaning is attached to information (often with metadata) that makes it readable for machines. Also, storage of this semantic information is done differently, it is stored as Knowledge Graph and retrieved by different types of query languages. I will make this abstract idea a bit more tangible.

Standardized schema for data enables connections and relations

Describe something

Key is to describe the world around us and standardize all the elements and relations. Such a description is called a schema. The best way to explain is to demonstrate. Think of a person and all attributes of someone and their walk of life. Here is a schema for a person:

And all the ways to contain this information in markup code. There are different types of code to wrap around the information. Microdata, RDFa and JSON-LD.

Example of schema

I will use Rembrandt van Rijn as an example and look him up in Wikidata:

The page gives an extensive listing of the person and relations to other people and objects. The topic Rembrandt has a unique value called identifier: Q5598. The beauty is that not only things have an identifier but also attributes as date of birth or the values of an attribute like male for gender.

You can see the multiple threads of a semantic web.

Knowledge graph

All these things and relations together form a knowledge graph. In this context, graph means a network of connections. This is an abstract concept, but also made more concrete by using graphs as the basis to store and retrieve information. Where a database uses list and relations, the knowledge graph has taken meaning in its design and the knowledge is queried with a different sort of language which is much more adequate for the goal.

Example of Knowledge Graph

Make the concept useful, for people and machines

Knowledge graphs are used by people and machines. One of the most tangible uses is on Google Search. Look up Rembrandt van Rijn and you will see the Knowledge Graph at work. It will, in the search results, display biographical information on the painter but also on people from the same sort of profession of works painted by him.

Marked information is made with Knowledge Graph of Rembrandt

Next to a machine collecting and presenting information (and some meaning) on the world around us, the semantic web is used for machines to exchange information on a range of topics. Think of companies or a listing of cryptocurrencies. - is a set of extensible schemas that enables webmasters to embed structured data on their web pages for use by search engines and other applications.