What is a semantic network?
A semantic network is a way to store knowledge as a graph. Each node stands for a concept, such as a thing, a person or an idea. Each link, sometimes called an arc, joins two nodes and carries a label that names the relation between them, such as “is a,” “has” or “can.” Because the meaning sits in those links, a program can follow them to answer questions about the concepts.
In artificial intelligence (AI), semantic networks are one form of knowledge representation, the broader field of storing facts about the world in a form a machine can use. They were a major research topic in the 1970s and 1980s, and the core idea still appears in today’s knowledge graphs.
A simple example: animals and birds
Imagine a small network about birds. It holds these facts, with each row being one labeled link:
| Start node | Relation | End node |
|---|---|---|
| canary | is a | bird |
| penguin | is a | bird |
| bird | is a | animal |
| bird | can | fly |
| bird | has | wings |
| penguin | cannot | fly |
| canary | has color | yellow |
The same facts drawn as a diagram:
canary --is a--> bird --is a--> animal
penguin --is a--> bird
bird --can--> fly
bird --has--> wings
penguin --cannot--> fly
canary --has color--> yellow
Following the links from canary to animal, the network can read “a canary is a bird, and a bird is an animal,” so a canary is an animal too.
How inheritance lets a network answer questions
The “is a” links allow inheritance. A canary is a bird, so a canary inherits what is known about birds, including that it has wings and can fly. The network does not need a separate “canary can fly” fact. This keeps the knowledge short, and if the entry for birds changes, every kind of bird linked to it is affected.
Here is how a program might answer “Can a canary fly?”:
- Check the canary node for a “can” link to “fly.” There is none.
- Follow the “is a” link from canary to bird.
- Check the bird node. It has a “can” link to “fly,” so the answer is yes.
Working out that a canary can fly is a simple kind of inference, the process of deriving new facts from known ones. For more kinds of reasoning, see types of inference in artificial intelligence.
Exceptions and defaults
Not every bird flies. Penguins are birds that cannot fly, and a network handles this by letting a more specific node override an inherited value. Asked “Can a penguin fly?”, the program checks the penguin node first, finds “cannot fly,” and stops there. It never needs to reach the general rule about birds.
In the simplest versions, the closest value wins. That makes inherited facts behave like defaults: they hold unless a more specific fact says otherwise. Many real systems need more careful rules for conflicts, but the penguin example shows the basic idea.
Where semantic networks came from
Semantic networks grew out of research on how people store the meanings of words. In the late 1960s, M. Ross Quillian developed models of semantic memory, in which concepts were nodes joined by labeled relations and activation could spread from one concept to related ones. Researchers then used similar networks in early programs that tried to understand language, where a system had to link the words in a sentence to concepts it already knew.
These early networks exposed a problem. A label such as “is a” can mean different things. A canary is a kind of bird, but a person who is a doctor holds a role, not a kind of person. Early networks sometimes used one label for several of these ideas, which made their answers harder to trust. Researchers responded with stricter formats, and that work helped shape later knowledge systems.
Examples you can look up today
- WordNet is a large database of English words developed at Princeton University. It groups words into sets of synonyms and links them with relations such as “is a kind of,” so “dog” connects to “canine.”
- Wikidata is a free, collaboratively edited knowledge base. It stores facts as statements that link an item to a value through a property, which is the same basic structure as a labeled link.
- A family tree is a simple semantic network. The nodes are people, and the links are relations such as “parent of” and “married to.”
- Knowledge graphs are large-scale versions of the same idea. Many search engines and question-answering systems use them to connect entities such as people, places and companies.
Semantic networks compared with other approaches
Semantic networks are one of several knowledge representation approaches in ai. Frames group the properties of a concept into a structure with named slots, such as a car frame with slots for wheels, engine and color. Formal logic writes facts as precise statements that can be checked and combined. Semantic networks sit between these: they are easy to draw and read, but they are often less exact than logic about what each link means.
Strengths and limits
Semantic networks have clear advantages:
- They are easy to draw, read and explain, which makes them useful for teaching.
- Inheritance avoids repeating the same facts for every concept.
- New relations can be added as new link labels.
They also have limits:
- Links do not have one fixed meaning, so two people can read the same network differently.
- Uncertainty and conditions are hard to express. A rule such as “the match is cancelled if it rains, unless the roof is closed” needs more than simple labeled links.
- Large networks are hard to build and keep consistent by hand.
Modern AI relies heavily on neural networks that learn patterns from large amounts of data. Semantic networks and knowledge graphs still matter where precise, checkable facts are needed, such as in search and question answering.
Summary
- A semantic network stores knowledge as concepts joined by labeled links.
- Inheritance lets a program answer questions by following links such as “is a.”
- A more specific fact can override an inherited one, as with penguins and flight.
- The idea is decades old, is still used in knowledge graphs and lexical databases, and is one of several ways AI represents knowledge.