Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

12-10-2013_09-24-50 / [Simon_Kendal,_Malcolm_Creen]_Introduction_to_Know(BookFi.org)

.pdf
Скачиваний:
140
Добавлен:
14.03.2016
Размер:
1.71 Mб
Скачать

Knowledge Representation and Reasoning

Reptiles

is_a

Crocodile

Size

Small

is_a

is_a

Vegetarian

‘Slither’

143

is_a

Characteristic

Snake

No legs

is_a

Colour

Grass Snake

Green

is_a

‘Sidney’

FIGURE 4.5. A graphical representation of a semantic network.

store of knowledge for use by a KBS. The hierarchical nature of the diagram helps explain the elements of the network. For example, in Figure 4.5., Grass Snakes are a sub-class of the total class of reptiles—so all grass snakes must be reptiles. Similarly, both Slither and Sidney are grass snakes. As the class of grass snakes also has properties of Small and Green, then Sidney and Slither must be small and green as they belong to this class. However, Slither is a vegetarian, so this attribute applies to Slither only (grass snakes are normally carnivores).

However, the very simplicity of the semantic network means that it can actually be too flexible, i.e., there are too many ways to represent something. This can lead to extreme complexity when representing exceptional cases, e.g. if Sidney was not green due to some illness.

144

An Introduction to Knowledge Engineering

Activity 19

Look at the following diagram.

What conclusions might you draw about what slither eats?

 

Reptiles

 

 

 

is_a

is_a

 

 

 

Snake

Characteristic

 

Crocodile

No legs

 

 

 

 

Meat

 

 

 

 

is_a

 

 

 

Eats

 

 

Size

 

Colour

 

Small

Grass Snake

Green

 

is_a

 

is_a

 

is_a

 

 

Vegetarian

‘Slither’

 

‘Sidney’

Feedback 19

You should have been able to recognise that from this semantic network it would be possible to conclude that the grass snake Slither is a vegetarian and Slither eats meat. Clearly, these conclusions are contradictory. Which conclusion we reach depends where in the network we start and which links we follow. This process is unreliable.

Thus, to perform inference using a semantic network you must understand the meaning of the links and follow the correct links. As the links can be many, and varied, performing inference using a semantic network is complex and unreliable.

Representing Exception Data

When exception data (e.g. Slither is yellow) is stored on a semantic network it can quickly become large, cluttered and difficult to read.

Knowledge Representation and Reasoning

145

Reasoning with Semantic Networks

Semantic networks can be very difficult to reason from, as an inference engine must understand what type of link exists between nodes within the semantic network, and there are no constraints on allowable links.

To understand the semantic network that describes Slither, you need to understand the links, i.e., the words ‘is a’, ‘eats’, ‘vegetarian’, etc. If an inference engine were to reason with this network, then it must have some understanding of these words and this is difficult to build in.

Semantic networks are particularly good at representing knowledge in the form of hierarchies. They can also represent complex causal relationships—though the diagrams can become large and complex. Their explicit links and visual diagrams can make knowledge quite clear. Much of the reasoning with semantic networks is in the form of deducing indirect links between concepts based on direct links explicitly stated. This is difficult for an inference engine to achieve in practice however, because it needs to understand the links and the conclusions depend on successfully searching the network. For this reason, semantic networks are often used only as a communication tool between the knowledge engineer and the domain expert and after the knowledge has been obtained it is then converted into another format that is easier to process.

Advantages of Semantic Networks

The advantages of semantic networks to represent knowledge include:

They tend to be a powerful and adaptable method of representing knowledge because many different types of object can be included in the network.

The network is graphical and therefore relatively easy to understand.

Can be used as a common communication tool between the knowledge engineer and the human expert during the knowledge acquisition phase of designing an ES.

Disadvantages of Semantic Networks

The disadvantages of using semantic networks to represent knowledge include:

It can be difficult to show all the different inference situations using a network.

They are less reliable than other knowledge representation techniques because inferring becomes a process of searching across the diagram.

Diagrams can become very complex.

The wide range of possible kinds of links and the ways they might combine to form indirect linkages, plus the large number of concepts usually included in a

146

An Introduction to Knowledge Engineering

semantic network make this form of representation susceptible to a combinatorial explosion.

Semantic networks have difficulty associating procedural knowledge with the facts represented by the network and, since they lack any means of bundlingrelated facts into associated clusters, usually result in a proliferation of many different concepts and linkages producing a complex representation that may require extensive search operations to reach conclusions.

Limitations of Semantic Networks

Semantic networks as a representation of knowledge have been in use in Artificial Intelligence for many years. Some of the earliest uses of a nodes-and-links approach were in the work of Quillian (1968) and Winston (1975), where semantic networks were used as models of associative memory. Quillian (1968) focused on how natural language is understood and the capturing of meaning by a machine. Winston (1975) focused on machine learning and structural descriptions of an environment.

Creations and uses of semantic networks have led to a number of epistemological problems, which numerous researchers have attempted to address these problems. Barr and Feigenbaum state that:

In semantic network representations, there is no formal semantics, no agreed-upon notion of what a given representational structure means, as there is in logic, for instance.

Semantic networks do tend to rely upon the procedures that manipulate them.

The system is limited by the user’s understanding of the meanings of the links in a semantic network. Links between nodes are not all alike in function or form. We therefore need to differentiate between links that assert some relationship and links that are structural in nature.

Summary

In this section you have learned about the role of semantic networks in knowledge representation. In the process, you discovered the limitations of such an approach and why semantic networks can be used as a communication tool between the knowledge engineer and the domain expert.

Current Research Links

Semantic Research

http://www.semanticresearch.com/

Knowledge Representation and Reasoning

147

Concept Maps as Hypermedia Components

http://ksi.cpsc.ucalgary.ca/articles/ConceptMaps/CM.html#Abstract

Plumb Design Visual Thesaurus

http://www.plumbdesign.com/products/thinkmap

The Combination of Hypertext and Semantic Networks for the Representation of Knowledge

http://www.datafoundry.com/semantic.htm

Scientific American: The Semantic Web

http://www.sciam.com/article.cfm?articleID=00048144-10D2-1C70- 84A9809EC588EF21

Semantic Networks, Concept Maps, Knowledge, Knowledge Representation

http://www.ipli.com/semantic.htm

Using Semantic Networks as a Mindtool

http://www.conroe.isd.tenet.edu/educ/pub htm/Pub htm/DOCS/MINDTOOL/ SEMANTIC.HTM

Semantic and Real Networks: Does Browsing Make Sense?

http://perso.wanadoo.fr/universimmedia/nohi/enohip2.htm

Self-Assessment Question

Read the article in Scientific American about ‘The Semantic Web’ at: http:// www.sciam.com/article.cfm?articleID=00048144-10D2-1C70- 84A9809EC588EF21.

Comment, with examples, on the accuracy of the sentence in the first paragraph under the heading knowledge representation that reads:

Knowledge representation, as this technology is often called, is currently in a state comparable to that of hypertext before the advent of the Web: it is clearly a good idea, and some very nice demonstrations exist, but it has not yet changed the world. It contains the seeds of important applications, but to realise its full potential it must be linked to a single global system.

Quote freely from the article in your answer if appropriate.

148

An Introduction to Knowledge Engineering

Answer to Self-Assessment Question

You may have referred to such characteristics of current knowledge representation technology as:

the limiting of the questions that can be asked in order to allow the computer to answer reliably, or at all

the centralisation involving the requirement to share exactly the same definition.

On the other hand, you may have noted the potential improvements claimed for approaches incorporating XML, RDF, URIs, etc.

Knowledge Representation and Reasoning

149

SECTION 5: FRAMES

Introduction

This section provides an introduction to how knowledge can be represented in ESs using frames.

Objectives

By the end of the section you will be able to:

explain how frames can be used to represent knowledge

describe how ontologies can be used to represent knowledge.

Frames

Frames are a simplified version of a semantic network where only ‘is a’ relationships apply.

Frames provide a method of storing knowledge, collecting specific information about one object in an ES. In essence they allow both data and procedures to be included within one structure.

An example frame for a coffee mug object can be drawn as follows:

Coffee mug FRAME

IS A

Mug

COLOUR

 

CAN HOLD LIQUID

True

NUMBER OF-HANDLES

Default = 1

SIZE

Range: Small, Medium, Large

PURPOSE

Value : drinking coffee

COST

Demon (£ needed)

MATERIAL

Default = pottery

Within that structure, slots (i.e., rows) can:

store details of each data object

provide links to other frames

150

An Introduction to Knowledge Engineering

contain procedural code, linking to other applications to obtain data or write data

indicate whether or not certain properties of each object are needed within that frame.

In practice, three different types of slots are used:

1.Named slots having a standard filler value of certain data items. For example, the slot for number of wheels in a car frame will have a default value of four. This can be overwritten where the specific type of car being described (such as a three-wheel car) does not meet this default value. Range values can also be specified, e.g. the size must be small, medium or large.

2.Slots showing relationships using the term IS A. For example, a car is a motor vehicle. The IS A motor vehicle slot will therefore link the frame for car with a frame describing the basic features of a motor vehicle.

3.Slots contain procedural code. For example, the number of miles that a car can travel, i.e., its range, is determined by the current petrol stored in its tank and by the engine size. The slot for range can therefore store procedural code to calculate the range (if needed) based on the slots for current petrol and engine size. This procedural code is called a demon (in this case an if needed demon) and is activated automatically if a value for range is needed.

Activity 20

Complete the following frame for a car based on the information provided above. Remember that cars are available in a range of sizes and that they are part of the overall set of motor vehicles.

Car FRAME

IS A

MANUFACTURER

CAN TRAVEL ON ROADS

NUMBER OF-WHEELS

SIZE

PETROL TANK CAPACITY

CURRENT FUEL

ENGINE SIZE

RANGE

Knowledge Representation and Reasoning

151

Feedback 20

 

 

Car FRAME

IS A

Motor vehicle

MANUFACTURER

 

CAN TRAVEL ON ROADS

True

NUMBER OF-WHEELS

Default = 4

SIZE

Range: Small, medium, large

PETROL TANK CAPACITY

 

CURENT FUEL

 

ENGINE SIZE

 

RANGE

If needed: Calculate from current

 

fuel and engine size

 

 

Levels Within Frames

The levels of information within frames are:

The highest level in a frame is literally FRAME, which stores the name of the specific frame.

Below this there are SLOTS, with each slot providing information on one of the attributes of that frame.

Within the slot, the FACET provides detail on each attribute. This detail may include a value, ranges that can be applied to the attribute, default values or calculated values including demons.

Finally, the DATA provides specific information about each attribute, such as the NUMBER OF WHEELS being 4 in a frame describing a motor vehicle.

Inheritance

One of the main advantages of using frames is the principle of inheritance. This means that frames can inherit the attributes of other frames, in a hierarchical structure. For example, a frame for a cup can provide some basic attributes in a number of slots about that object. These attributes can be given to other objects that share those attributes.

Figure 4.6 shows the attributes of a mug being applied to two other drinking receptacles, namely a tea mug and a coffee mug.

152

An Introduction to Knowledge Engineering

Mug FRAME

STORES Liquid

NUMBER_OF-HANDLES Default = 1

Tea mug FRAME

IS_A

Mug

COLOUR

Tea

STORES

NUMBER_OF-

Default = 1

HANDLES

Range: S, M or L

SIZE

Drinking tea

PURPOSE

 

MATERIAL

Default = china

 

Coffee mug FRAME

IS_A

 

Mug

COLOUR

 

Coffee

STORES

 

NUMBER_OF-

Default = 1

HANDLES

 

 

Range: S, M or L

SIZE

 

PURPOSE

 

Drinking coffee

MATERIAL

 

Default = pottery

 

 

 

FIGURE 4.6. Mug frames.

The Mug FRAME provides some detail on mugs. These slots can then be used in the Coffee mug and Tea mug frames.

Using the idea of inheritance, the objects lower in the hierarchy automatically inherit the contents of the corresponding slots, unless this data is overwritten, e.g. tea mugs store tea (not just an unspecified liquid). The default value for number of handles is inherited and not over written as most Tea mugs have one handle. This may over written lower down the hierarchy of frames when we define a frame for Fred’s mug. Initially in this frame the slot for NUMBER OF HANDLES would contain an inherited default value, and therefore we may assume that Fred’s mug has one handle. However, as the ES runs we may find out that this specific mug is very large and has two handles—at this point the appropriate slot in this frame would have a specific value stored in it over riding the inherited default value.

Activity 21

Use the Motor Vehicles frame (below) and the information specified to complete a three-wheeled Car frame.

Three-wheeled cars are manufactured by ‘Smith’s’. They have 1.1 litres engines and have a maximum speed of 100 kilometres per hour.

Motor Vehicle FRAME

CAN TRAVEL ON ROADS

True

NUMBER OF-WHEELS

Default = 4