Professional Documents
Culture Documents
IntroductiontoOntologies OntologyEngineering
Section1
OntologyinPhilosophy:
Themetaphysicalstudyofthenatureofbeing andexistence
OntologyinArtificialIntelligence:
asharedandcommonunderstandingofsome domainthatcanbecommunicatedbetween peopleandapplicationsystems (Gruber)
Ontologyasvocabulary
Ontologyisarepresentationvocabulary,oftenspecializedto somedomainorsubjectmatter.
Ontologyascontenttheory
Themaincontributionofontologyistoidentifyspecific classesofobjectsandrelationsthatexistinsomedomain.
Studer(98): Formal,explicitspecificationofasharedconceptualization
10
reasoningtasks:
12
Welldesigned
Usefulandprovenmodellingprimitives Intuitivetohumanusers Expressiveenough Efficientandcompletereasoningsupport
Welldefined
clearsyntax readontologies Formalsemantics understand(process)ontologies to facilitatemachineinterpretationofthatsemantics
Compatible
Easymapping to/fromotherontologylanguages Maximumcompatibility withXMLandRDF(S)
15
Section2
17
Screenshotsinfurtherexamplesarefrom Protg,which:
isagraphicalontologydevelopmenttool supportsarichknowledgemodel isopensourceandfreelyavailable (http://protege.stanford.edu/)
18
19
20
22
Aclassisaconcept inthedomain
aclassofwines aclassofwineries aclassofredwines
23
24
AppleisasubclassofFruit
Everyappleisafruit
RedwinesisasubclassofWine
Everyredwineisawine
ChiantiwineisasubclassofRedwine
EveryChiantiwineisaredwine
25
topdown definethemostgeneralconcepts firstandthenspecializethem bottomup definethemostspecific conceptsandthenorganizetheminmore generalclasses combination definethemoresalient conceptsfirstandthengeneralizeand specializethem
27
Classes(andslots)usuallyhave documentation
Describingtheclassinnaturallanguage Listingdomainassumptionsrelevanttotheclass definition Listingsynonyms
Documentingclassesandslotsisas importantasdocumentingcomputercode!
28
29
Typesofproperties
intrinsicproperties:flavor andcolor ofwine extrinsicproperties:name andprice ofwine parts: ingredients inadish relationstootherobjects:producer ofwine(winery)
Simpleandcomplexproperties
simpleproperties(attributes):containprimitivevalues (strings,numbers) complexproperties:contain(orpointto)otherobjects (e.g.,awineryinstance)
30
(inProtg2000)
31
Propertyconstraints(facets)describeorlimit thesetofpossiblevaluesforaslot
Thenameofawineisastring ThewineproducerisaninstanceofWinery Awineryhasexactlyonelocation
33
Slotcardinality thenumberofvaluesaslot has Slotvaluetype thetypeofvaluesaslothas Minimumandmaximum value arangeof valuesforanumericslot Default value thevalueaslothasunless explicitlyspecifiedotherwise
34
Minimumcardinality
Minimumcardinality1 meansthattheslotmusthavea value(required) Minimumcardinality0 meansthattheslotvalueis optional
Maximumcardinality
Maximumcardinality1 meansthattheslotcanhaveat mostonevalue(singlevaluedslot) Maximumcardinalitygreaterthan1 meansthattheslot canhavemorethanonevalue(multiplevaluedslot)
35
TheWineclassisthevaluetypefortheslot producesattheWineryclass
36
37
Winery
is-a
French wine
producer
French winery
38
Createaninstanceofaclass
Theclassbecomesadirecttype oftheinstance Anysuperclassofthedirecttypeisatype oftheinstance
Assignslotvaluesfortheinstanceframe
Slotvaluesshouldconformtothefacetconstraints Knowledgeacquisitiontoolsoftencheckthat
39
40
Thethingstoremember:
Thereisnosinglecorrectclasshierarchy Buttherearesomeguidelines
Thequestiontoask:
Iseachinstanceofthesubclassisaninstanceofits superclass?
41
Theisarelationshipistransitive:
BisasubclassofA CisasubclassofB CisasubclassofA
42
43
Wine
Red wine
White wine
Ros wine
44
45
46
47
Class
Instance
49
50
51
Considertheproduces slotforaWinery:
Range:Redwine,Whitewine,Roswine Range:Wine
52
Aclassandasuperclass replacewiththe superclass Allsubclassesofaclass replacewiththe superclass Mostsubclassesofa class consider replacingwiththe superclass
53
54
55
56
Ontologyofwine,food,andtheirpairingsprobably willnotinclude
Bottlesize Labelcolor Myfavoritefoodandwine
Anontologyofbiologicalexperimentswillcontain
Biologicalorganism Experimenter
IstheclassExperimenterasubclassofBiological organism?
57
58