Back to Study Material Artificial Intelligence

Semantic web

The Semantic Web is an extension of the World Wide Web in which information is given well-defined meaning through formal representation, enabling computers...

Semantic web

A Web of Machine-Readable Meaning

The Semantic Web is an extension of the World Wide Web in which information is given well-defined meaning through formal representation, enabling computers to interpret and integrate data from different sources automatically. The vision was articulated by Tim Berners-Lee in a 2001 Scientific American article. While the original web was designed for humans to read, the semantic web is designed for machines to process, linking data across the internet into a global queryable knowledge graph.

The key technologies of the semantic web are the Resource Description Framework, or RDF, the SPARQL query language, and OWL. RDF represents facts as triples consisting of a subject, a predicate, and an object. For example, the fact that Shakespeare wrote Hamlet is represented as the triple with subject Shakespeare, predicate wrote, and object Hamlet. Each component is identified by a URI, making statements globally unambiguous. Collections of RDF triples form RDF graphs that can be queried using SPARQL, a query language syntactically similar to SQL but designed for graph-structured data.

Linked Data is the practical implementation of semantic web principles for publishing structured data on the web so that it can be interconnected. DBpedia, which extracts structured data from Wikipedia and publishes it as RDF, is one of the most central datasets in the linked open data cloud, connecting to thousands of other datasets about geography, science, culture, and government through shared entity identifiers.

Knowledge Graphs Today

Google's Knowledge Graph, used to generate information panels in search results, is a proprietary large-scale knowledge graph containing billions of facts about entities and their relationships. Wikidata serves as the publicly editable equivalent, feeding structured data to Wikipedia and many other applications. Both represent the commercial maturation of semantic web ideas.

Exam Tip

Exam questions on the semantic web often ask you to write a simple RDF triple or a SPARQL query. For an RDF triple question, identify the subject entity, the predicate relationship, and the object entity and express each as a URI or literal. For a SPARQL question, know the basic SELECT WHERE pattern and that triples in the WHERE clause can contain variables prefixed with a question mark that are bound during query evaluation.