Description Logic

From BC$ MobileTV Wiki
Revision as of 01:54, 11 May 2011 by Joe (Talk | contribs)

Jump to: navigation, search

Description Logic (commonly abbreviated DL) is a set of mathematical rules and expressions for describing an action or set of outcomes, based on a particular set of inputs, as defined by principles of mathematical.


EXAMPLE

FACTS

man('homer').
woman('marge').
lastname('simpson').
hasSon('homer','bart').
hasSon('marge','bart').
hasDaughter('homer','lisa').
hasDaughter('marge','lisa').
hasDaughter('homer','maggie').
hasDaughter('marge','maggie').
dog('santas little helper').
hasPet('simpson','santas little helper').
married('homer','marge').
isMale(?x) :- man(?x).
isFemale(?x) :- woman(?x).
isMale(?x) :- dog(?x).
isFemale(?x) :- doe(?x).
isMale(?y) :- hasSon(?x,?y).
isFamily(?x) :- married(?x,?y).
isFamily(?y) :- married(?x,?y).
isFamily(?y) :- hasSon(?x,?y).
isFamily(?y) :- hasDaughter(?x,?y).
isFamily(?x) :- lastname(?x).
isExtendedFamily(?x) :- isFamily(?x,?y).
isExtendedFamily(?x) :- hasPet(?x,?y).

EXAMPLE QUERY #1 - Which Simpsons are male? (infers that Bart is male from "son" relationship)

?-isMale(?x).


EXAMPLE QUERY #2 - Who has a son? (Explicitly stated)

?-hasSon(?x).


EXAMPLE QUERY #3 - Who are in the Simpson family? (infered from son/daughter/marriage reciprocal relationships)

?-isFamily(?x).


EXAMPLE QUERY #4 - Who are in the Simpson's "extended" family? (infered from family relationship and Pets, Grandparents, etc)

?-isFamily(?x).



Tools


Resources


Tutorials


External Links

References

  1. http://iris-reasoner.org/demo

See Also

Rule Engine | Semantic Web | AI | Machine Learning