l5: advanced modelling (english)

77
Advanced Modelling i-views University Part 05: Advanced Modelling

Upload: medialeg-gmbh

Post on 14-Apr-2017

41 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: L5: Advanced modelling (english)

Advanced Modelling

i-viewsUniversityPart05:AdvancedModelling

Page 2: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

2

Today‘s Speaker

AnnekathrinLösche

KnowledgeEngineer

intelligentviews gmbh

Page 3: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

3

Ifyouhaveproblemswiththesound:- Checktheaudiosettingsinmenuitem „Communicate“- Joinalternativelybytelephoneorbydial-innumber

from landline phone (for free):• 000-800-100-8171 for India• 0800-894627for Switzerland

from mobilephone• +41434569564 only for Switzerland

Event-Number::844317586Event-Password:hello

Page 4: L5: Advanced modelling (english)

Advanced Modelling

InheritanceinSemanticNetworks

Page 5: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

5

Recap:Object-TypeHierarchies- Inheritance

• Propertiesaredefinedfortypes• Propertiescanbeinheritedbyconnectingsupertypes with subtypes

has sub-type

Alsoknownas:Top/subset

Top/subtype

"Isa"-relation

Theattributesandrelationsshouldbepositionedasfarupinthehierarchyasitisnecessary.

location time

Page 6: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

6

Recap:Object-TypeHierarchies - Inheritance

• Propertiesaredefinedfortypes• Propertiescanbeinheritedbyconnectingsupertypes with subtypes

has sub-type

has sub-type

Alsoknownas:Top/subset

Top/subtype

"Isa"-relation

Theattributesandrelationsshouldbepositionedasfarupinthehierarchyasitisnecessary.

location time

location time

location time location time

location time

location timelocation time

Page 7: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

7

Recap:Object-TypeHierarchies - Inheritance

• ObjectTypesmayhavemultipleparent-types

• Objectsmustonlybelongtooneobjecttype

Page 8: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

8

Recap:Object-TypeHierarchies - Inheritance

Ifanemployeeofanorganizationisincludedinaproject,thisorganizationisalsoinvolvedintheproject.

Thesameappliestoemployeesofapartofanorganization.

Page 9: L5: Advanced modelling (english)

Advanced Modelling

Formalvs.InformalSemanticNetworks

Page 10: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

10

Informalvs.FormalSemantic Networks

• Noisydata

• Extendedqueries

• Thematicallyrelevantinformation

• Personalisedworkenvironment

• DeductionsandRecommendations

Page 11: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

11

Informalvs.FormalSemantic Networks

• Noisydata

• Extendedqueries

• Thematicallyrelevantinformation

• Personalisedworkenvironment

• DeductionsandRecommendations

InformalmodelFew Types and Relationtypes

SimpleInferencing

Rigid,formalmodelMany Types and Relationtypes

ExtensiveInferecing

Page 12: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

12

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Page 13: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

13

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Page 14: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

14

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Page 15: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

15

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Page 16: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

16

FormalSemantic Networks• Object-typehierarchy is well orderd

and categorised

• Object-typehierarchy levels are ofthe samegranularity

• Objectsbelongtothematchingobject-type

Page 17: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

17

Fromal vs.InformalSemantic Networks

informalsemantic network

„melting pot“

formalsemantic network

„well categorised“

Page 18: L5: Advanced modelling (english)

Advanced Modelling

HierarchicalRelations

Page 19: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

19

Part-Of or Super-/Subtype-Of Hierachy

Shouldgeographicalobjectsbepresentedthroughapart-

ofhierarchyoratypehierarchy?

Generalrule:objecttypesshouldnotbemodelledassubtypesiftheirindividualobjectsarealreadypartof

otherobjecttype‘sindividualobjects.

Page 20: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

20

Part-Of or Super-/Subtype-Of Hierachy

Ifwecanassumearealisticmodelofgeographicstructures,i.e.acontinentconsistsofcountries,whichinturnincludesitscities,thisstructurewouldbetranslatedintoapart-ofhierarchywithcitiesthatarepartofcountries

thatarepartofcontinents.

Anothergeneralrule:Ifthesentence„Anycityisacountryisacontinent“istrue,youshoulduseatypehierarchy.Inthiscase,„Anycityispartofacountryispartofacontinent“ismoreappropriate

though,thereforeweuseapart-ofhierarchy.

Page 21: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

21

Part-Of or Super-/Subtype Hierarchy

Inthiscase,attributesarethemainreasonforchoosingatypehierarchybetweentheseobjects.

PossibleReasonsforanotherlayer:

• Numberofsubtypes

• “perceiveddistance/togetherness”betweenthesiblingnodes

Page 22: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

22

Part-Of or Super-/Subtype Hierarchy

Advantagesofanewlayer:

• Objectswithacertainrelatednessareclosertoeachother(likeHpyertension andArteriosclerosis)

Disadvantageofanewlayer:

• Complicated,artificialinsertedObjects(likeDiseaseoftherespiratorysystem)

Page 23: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

23

ArtificialObjectsforBuildingHierarchies

• Usedforbundlingobjectsinobject-hierarchies

Page 24: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

24

ArtificialObjectsforBuildingHierarchies

Notrecommendedbecause„otherstringedinstruments“isalreadyrepresentedviaobject-type

Page 25: L5: Advanced modelling (english)

Advanced Modelling

ModellingProcess

Page 26: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

26

Bottom-UporTop-Down

Startwitheither

• Amodel(objectandrelationtypes)

• Specificobjects

• Queriesandrulesforassemblinginformation

Mostofthetimeitwillbeacombination

• Iterativeapproach

• Quickconstructionofaprototype

• Ontheflychangesofthemodel

• Explorationofthesemanticnetworkwilljointhesetupfromthebeginning

Page 27: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

27

KeepinMindwhileModelling/DesigningyourNetwork

• Thesemanticmodelissupposedtosupportthesearchprocessandautomaticcombinationofinformation

• Thesemanticmodelshouldhelpyoutoavoidredundancies

• Thesemanticmodelistopresentfactsaspreciseaspossible

• Thesemanticmodelshouldbeeasytounderstandbyexternals

Page 28: L5: Advanced modelling (english)

Advanced Modelling

Objectsvs.Attributs

Page 29: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

29

Relationsvs.Attributes- RecommendationsonUsage

UseAttributeswhen:

• Greatvarietyofinformationandbarelyanyrepetitioninvalues

UseObjectswhen:

• Manyobjectssharethesame„property“/information

• Theinformationisitselfacomplexinformationwithitsownproperties

TermxTermx

Synonym

Termy

Termz Synonym

Page 30: L5: Advanced modelling (english)

Advanced Modelling

InferredRelations

Page 31: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

31

DifferentTypesofRelations

• UserRelation• Relationdefinedbytheuser

• Representanyrelationshipbetweenobjects

• InferredRelation• Linkingseveralrelationstogethertoformarelationalpathway

Page 32: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

32

Inferred Relation

• Atleasttwoconnectedrelationscancreateanewinferredrelation

• Itbuiltsashortcutbetweenobjects,wellusedpathsdon’thavetobedefinedneweverytime

• Example:thesongBacktoBlackfromthealbumBacktoBlackisconnectedtothreemoods.Thesemoodscouldalsobeconnectedtothealbumitself.Aninferredrelationdefinesthisconnection.

Page 33: L5: Advanced modelling (english)

Advanced Modelling

OrderingRelationsandAttributes

Page 34: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

34

Relations-/AttributeHierarchy• Liketypes,relationscanbedefinedinahierarchy• Thedomainandtargetdomainwon‘tbeinheritedbythesubtypes• Itispossibletocreateabstractrelations• Thishierarchycanbeusedfor• Abetteroverview• Whichrelationsarepossiblebetweencertaintypes?

• Implications• Whichcanbeusedinstructuredqueries• Insteadofusingthreedifferentrelations(withdifferentdomainsandtargetdomains),agroupingrelationcancombineallthreeofthem(e.g.RoleIsPresentonSong)

Page 35: L5: Advanced modelling (english)

Advanced Modelling

ExtensionsandRoles

Page 36: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

36

Recap:ExtensionsandRoles

• Objectscanonlybeofonetype.

• Youhavetouseextensionswiththeirownrelationsandattributesifyouwanttoexpressadditionalfeatures.

• Examplaryusecases:• Representationoftemporaryproperties(positioninacompany;statusofaproject)• Rolebasedpermissionsystem

Page 37: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

37

Recap:ExtensionsandRoles

Page 38: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

38

Recap:Extensions

• Objectscanhaveonlyonedefiningtype(asopposedtotype!).• Additionalcategorisationsofenhancementswithownrelationsandattributes.

Page 39: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

39

Recap:Extensions

• Extensionsfortime-limitedroles(positioninacompany;Projectstatus)• Example:Objectsoftypepersonwillbeextendedthrough:• Rollbassist• Rollproducer• Rollcomposer• ...

• Changesfortheroleofthepersonmustbemadeonlyontheroleobject,notonallpeopleassociated.

Page 40: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

40

Recap:Extensions

• Apersoncanreceivemorethanoneroleatthesametime• Thankstotheextension,newrelationsandattributesareavailablefortheextendedobjectthatwerenotpreviouslyapprovedbytheschema(forexample:JennyConlee"participatesin"Allright asaccordionist)• Thisconnectioncannotbeillustratedthrough"normal",separaterelations

Page 41: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

41

DefininganExtension

Page 42: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

42

Defining anExtension

Page 43: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

43

Defining anExtension

Page 44: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

44

Defining anExtension

Page 45: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

45

Defining anExtension

Page 46: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

46

UsinganExtension

Allpossiblerelationsforanobjectoftype

person

Page 47: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

47

Using anExtension

Page 48: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

48

Using anExtension

Page 49: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

49

Using anExtension

Page 50: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

50

Using anExtension

Allpossiblerelationsforanobjectoftype

personandtheextensionMusician

Page 51: L5: Advanced modelling (english)

Advanced Modelling

Meta-Properties

Page 52: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

52

Recap:Metaproperties

Metapropertiesofrelationsandattributescanbemappedbyattributes• Ex.:“changedat“,ifyouwanttorememberwhensomebodychangedane-mailorthemembershipofaproject

changed at

changed at

is member of

Page 53: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

53

Recap:Metaproperties

Metapropertiesofrelationsandattributescanbemappedbyrelations• Ex.:“changedby”,ifyouwanttorememberwhochangedthee-mailorthemembershipofaprojectchanged by

Page 54: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

54

Defining aMetattribute

Page 55: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

55

Defining aMetaattribute

Page 56: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

56

Defining aMetaattribute

Page 57: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

57

Defining aMetaattribute

Page 58: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

58

Using aMetaattribute

Clickrightonthepropertyyouwant

toaddaMetaattributeto

Page 59: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

59

Using aMetaattribute

Page 60: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

60

Using aMetaattribute

Page 61: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

61

Using aMetaattribute

Page 62: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

62

Defining aMetarelation

Page 63: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

63

Defining aMetarelation

Page 64: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

64

Using aMetarelation

Clickrightonthepropertyyouwant

toaddaMetarelationto

Page 65: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

65

Using aMetarelation

Page 66: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

66

Using aMetarelation

Page 67: L5: Advanced modelling (english)

Advanced Modelling

Remodelling

Page 68: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

68

Changing the Object Typeof Objects

Movealldirectobjectsofanobject-typetoanotertype:

Rightclickonthetypethatcontainstheobjects

Page 69: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

69

ChangingtheObjectTypeofObjects

Enterthetypeyouwishtomovetheobjectto

Makesurethetypeyou‘rechoosingisnotabstract

Thesamewayyoucan„morph“relationsofarelationtypeintoanotherrelationtype

andattributes

Page 70: L5: Advanced modelling (english)

Advanced Modelling

CreateaNewSub-Network

Page 71: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

71

CreateaNewSub-Network

• Forabetteroverviewitcanbeusefull tocreateanewsub-network

• Thesample-networkhascurrently4sub-networks

• Onlyadministratorscancreatenewsub-networks

Page 72: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

72

CreateaNewSub-Network

• Toseeallthesub-networksclickonthecog-symbolandselect„TopTypes“

Page 73: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

73

CreateaNewSub-Network

• Nameyournew-sub-networkandyouwillseeitaddedtotheothersub-networks

• Sub-networkscanstillusetherelationsoftheothersub-networks

Page 74: L5: Advanced modelling (english)

Advanced Modelling

Exercises

Page 75: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

75

Exercises

1. RevisityourSemanticModelfromthelesson1exerciseandthinkaboutwaystoimprovethesemanticnetwork.Explainthechangesyouconductedandwhy.

2. Manyorganisationshavemorethanonesite,whichcanbeidentifiedbytheirstreetnames,streetnumbers,zipcodes,citiesandcountries.Additionally,thereisquiteahighnumberoforganisationsthataresupposedtoberepresentedbythemodeloveralongtimeframe.Chooseafittingwaytomodelthissituation.

3. Anorganizationemploys2employees:TimasammanagerandTomasanassembly-lineworker.TwoyearsagoTimusedtobeanassembly-lineworker,too(beforehegotpromotedtothemanager-position).Pleasemodelthescenario.

Page 76: L5: Advanced modelling (english)

Advanced Modelling

Sendyour questions to:[email protected]

Consultationhours:EveryWednesday

Thank you for visitingi-viewsUniversity

Page 77: L5: Advanced modelling (english)

Advanced ModellingAdvanced Modelling

77

UnsereneuenIcons