General ontology
An ontology is a “vocabulary” and a “theory” of a certain “part of reality”.
Special-purpose ontologies apply to restricted domains (e.g. electronic circuits).
General-purpose ontologies have wider applicability across domains, i.e.:
• Must include concepts that cover many subdomains
• Cannot use special “short-cuts” (such as ignoring time)
• Must allow unification of different types of knowledge
Genetic programming (GP) ontologies are useful in widening applicability of reasoning systems, e.g. by including time
Ogdens trekant
Fenomen i UoD - Begrep - Representasjon
Ontological engineering
Ontological engineering
Representing a general-purpose ontology is a difficult task called ontology engineering. Existing GP ontologies have been created in different ways:
Ontological engineering has only been partially successful, and few large AI systems are based on GP ontologies (use special-purpose ontologies)
Elements of a general ontology
Elements of a general ontology:

Ontology: Categories
Categories are used to classify objects according to common properties or definitions
∀x x ∈ Tomatoes ⇒ Red(x) ∧ Round(x)
Categories can be represented by:
• Predicates: Tomato(x)
• Sets: The constant Tomatoes represents set of tomatoes (reification)
Roles of category representations
Ontology: Objects
Need to distinguish between substance and discrete objects.
Substance (“stuff”)
• Mass nouns - not countable
• Intrinsic properties
• Part of a substance is (still) the same substance
Ontology: Composite objects
A composite object is an object that has other objects as parts. The PartOf relation defines the object containment, and is transitive and reflexive:
PartOf(x, y) ∧ PartOf(y, z) ⇒ PartOf(x, z)
PartOf(x, x)
Objects can be grouped in PartOf hierarchies, similar to Subset hierarchies. The structure of the composite object describes how the parts are related.
Ontology: Measurements
Need to be able to represent properties like height, mass, cost, etc. Values for such properties are measures. Unit functions represent and convert measures:
Length(L1) = Inches(1.5) = Centimeters(3.81)
∀l Centimeters(2.53 * l) = Inches(l)
Measures can be used to describe objects:
Mass(Tomato1) = Kilograms(0.16)
∀d d ∈ Days ⇒ Duration(d) = Hours(24)
Non-numerical measures can also be represented, but normally there is an order (e.g. >). Used in qualitative physics.
Events: Event calculus
Event calculus: How to deal with change based on representing points of time. Reifies fluents (“forløp”) and events (that is, fluents are functions and we introduce new predicates)
Events are instances of event categories:
E1 ∈ Flyings ∧ Flyer(E1, Shankar) ∧ Origin(E1, SF) ∧ Destination(E1, LA)
Event E1 took place over interval i:
Happens(E1 , i)
Time intervals represented by (start, end) pairs:
i = (t1, t2)
Time intervals are partitioned into moments (zero duration) and extended intervals.
Mental events and mental objects
Mental events and mental objects
Need to represent beliefs in self and other agents, e.g. for controlling reasoning, or for planning actions that involve others. How are beliefs represented?
Rules for reasoning about logical agents’ use their beliefs:
∀a,p,q LogicalAgent(a) ^ Believes(a, p) ^ Believes(a, ”p ⇒ q”)) ⇒ Believes(a, q)
∀a,p LogicalAgent(a) ^ Believes(a, p) ⇒ Believes(a, ”Believes(Name(a), p)”)
Semantic networks
Semantic networks
Graph representation of categories, objects, relations, etc. (i.e. essentially FOL). Natural representation of inheritance and default values. E.g. a Person has normally 2 legs, but the default is overridden for John with 1 leg
Description logic (DL)
Description logic (DL)
FOL enables ascribing properties to objects, while DL allows formal specification of and reasoning about definitions and categories. DL inference tasks:
• Subsumption - Check if a category is a subset of another
• Classification - Check if object belongs to a category
• Consistency - Check if category definition is satisfiable
DL evolved from semantic networks as a more formalized approach, still based on taxonomies. DL in different versions is the logical foundation for the Semantic Web.
CLASSIC
CLASSIC is an early example of DL, in which definitions can be stated and reasoned about. Simple category definitions:
Single = And(Unmarried,Adult)
Bachelor = And(U nmarried, Adult, M ale)
CLASSIC can answer questions like:
• Is category Bachelor subsumed by category Single?
• Is the individual Adam of category Bachelor?
CLASSIC definitions can be translated to FOL, but inference in DL is more efficient
Default and non-monotonic logic
Default and non-monotonic logic
Classical logic is monotonic: true statements remain true after new facts are added to KB: If KB |= a, then KB ^ B |= a
In the closed-world assumption (facts not mentioned assumed false), monotonicity is violated: If a is not mentioned in KB, then KB |= ¬a, but KB ^ a |= a
Non-monotonic reasoning is widespread in common-sense reasoning. We assume default in absence of other input, and are able to retract assumption if new evidence occurs. Non-monotonic logics support such reasoning
Circumscription
Circumscription (Norwegian: “begrensning”) is a more powerful version of the closed-world assumption. The idea is to specify particular predicates “as false as possible”, i.e. false for every object except for those for which they are known to be true. E.g. for the default that birds can fly:
Bird(x) ^ ¬Abnormal(x) ⇒ Flies(x)
If Abnormal is circumscribed, a circumscriptive reasoner can:
Truth maintenance systems (TMS)
Many inferences in the KB may have default status, and may need to be retracted in a process called belief revision.
Systems to handle such “book keeping” are called Truth Maintenance Systems (TMS)
Shopping agent
PEAS specification of shopping agent
Performance goal: Recommend product(s) to match user’s description
Environment: All of the Web
Actions: Follow links, retrieve page contents
Sensors: Web pages: HTML, XML
Outline
Start at home page of known web store(s). Must have knowledge of relevant web addresses, such as www.amazon.com etc. Spread out from home page, following links to relevant pages containing product offers. Must be able to identify page relevance, using product category ontologies, as well as parse page contents to detect product offers. Having located one or more product offers, agent must compare and recommend product. Comparison range from simple price ranking to complex tradeoffs in several dimensions.