l5: advanced modelling (english)

Post on 14-Apr-2017

41 Views

Category:

Data & Analytics

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Advanced Modelling

i-viewsUniversityPart05:AdvancedModelling

Advanced ModellingAdvanced Modelling

2

Today‘s Speaker

AnnekathrinLösche

KnowledgeEngineer

intelligentviews gmbh

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

Advanced Modelling

InheritanceinSemanticNetworks

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

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

Advanced ModellingAdvanced Modelling

7

Recap:Object-TypeHierarchies - Inheritance

• ObjectTypesmayhavemultipleparent-types

• Objectsmustonlybelongtooneobjecttype

Advanced ModellingAdvanced Modelling

8

Recap:Object-TypeHierarchies - Inheritance

Ifanemployeeofanorganizationisincludedinaproject,thisorganizationisalsoinvolvedintheproject.

Thesameappliestoemployeesofapartofanorganization.

Advanced Modelling

Formalvs.InformalSemanticNetworks

Advanced ModellingAdvanced Modelling

10

Informalvs.FormalSemantic Networks

• Noisydata

• Extendedqueries

• Thematicallyrelevantinformation

• Personalisedworkenvironment

• DeductionsandRecommendations

Advanced ModellingAdvanced Modelling

11

Informalvs.FormalSemantic Networks

• Noisydata

• Extendedqueries

• Thematicallyrelevantinformation

• Personalisedworkenvironment

• DeductionsandRecommendations

InformalmodelFew Types and Relationtypes

SimpleInferencing

Rigid,formalmodelMany Types and Relationtypes

ExtensiveInferecing

Advanced ModellingAdvanced Modelling

12

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Advanced ModellingAdvanced Modelling

13

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Advanced ModellingAdvanced Modelling

14

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Advanced ModellingAdvanced Modelling

15

InformalSemantic Networks

Combinationofdifferenttypes:Jazzmusic=StyleofMusic

Concert=EventRecordlabels=Organisation

Musicradio=Medium

Advanced ModellingAdvanced Modelling

16

FormalSemantic Networks• Object-typehierarchy is well orderd

and categorised

• Object-typehierarchy levels are ofthe samegranularity

• Objectsbelongtothematchingobject-type

Advanced ModellingAdvanced Modelling

17

Fromal vs.InformalSemantic Networks

informalsemantic network

„melting pot“

formalsemantic network

„well categorised“

Advanced Modelling

HierarchicalRelations

Advanced ModellingAdvanced Modelling

19

Part-Of or Super-/Subtype-Of Hierachy

Shouldgeographicalobjectsbepresentedthroughapart-

ofhierarchyoratypehierarchy?

Generalrule:objecttypesshouldnotbemodelledassubtypesiftheirindividualobjectsarealreadypartof

otherobjecttype‘sindividualobjects.

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.

Advanced ModellingAdvanced Modelling

21

Part-Of or Super-/Subtype Hierarchy

Inthiscase,attributesarethemainreasonforchoosingatypehierarchybetweentheseobjects.

PossibleReasonsforanotherlayer:

• Numberofsubtypes

• “perceiveddistance/togetherness”betweenthesiblingnodes

Advanced ModellingAdvanced Modelling

22

Part-Of or Super-/Subtype Hierarchy

Advantagesofanewlayer:

• Objectswithacertainrelatednessareclosertoeachother(likeHpyertension andArteriosclerosis)

Disadvantageofanewlayer:

• Complicated,artificialinsertedObjects(likeDiseaseoftherespiratorysystem)

Advanced ModellingAdvanced Modelling

23

ArtificialObjectsforBuildingHierarchies

• Usedforbundlingobjectsinobject-hierarchies

Advanced ModellingAdvanced Modelling

24

ArtificialObjectsforBuildingHierarchies

Notrecommendedbecause„otherstringedinstruments“isalreadyrepresentedviaobject-type

Advanced Modelling

ModellingProcess

Advanced ModellingAdvanced Modelling

26

Bottom-UporTop-Down

Startwitheither

• Amodel(objectandrelationtypes)

• Specificobjects

• Queriesandrulesforassemblinginformation

Mostofthetimeitwillbeacombination

• Iterativeapproach

• Quickconstructionofaprototype

• Ontheflychangesofthemodel

• Explorationofthesemanticnetworkwilljointhesetupfromthebeginning

Advanced ModellingAdvanced Modelling

27

KeepinMindwhileModelling/DesigningyourNetwork

• Thesemanticmodelissupposedtosupportthesearchprocessandautomaticcombinationofinformation

• Thesemanticmodelshouldhelpyoutoavoidredundancies

• Thesemanticmodelistopresentfactsaspreciseaspossible

• Thesemanticmodelshouldbeeasytounderstandbyexternals

Advanced Modelling

Objectsvs.Attributs

Advanced ModellingAdvanced Modelling

29

Relationsvs.Attributes- RecommendationsonUsage

UseAttributeswhen:

• Greatvarietyofinformationandbarelyanyrepetitioninvalues

UseObjectswhen:

• Manyobjectssharethesame„property“/information

• Theinformationisitselfacomplexinformationwithitsownproperties

TermxTermx

Synonym

Termy

Termz Synonym

Advanced Modelling

InferredRelations

Advanced ModellingAdvanced Modelling

31

DifferentTypesofRelations

• UserRelation• Relationdefinedbytheuser

• Representanyrelationshipbetweenobjects

• InferredRelation• Linkingseveralrelationstogethertoformarelationalpathway

Advanced ModellingAdvanced Modelling

32

Inferred Relation

• Atleasttwoconnectedrelationscancreateanewinferredrelation

• Itbuiltsashortcutbetweenobjects,wellusedpathsdon’thavetobedefinedneweverytime

• Example:thesongBacktoBlackfromthealbumBacktoBlackisconnectedtothreemoods.Thesemoodscouldalsobeconnectedtothealbumitself.Aninferredrelationdefinesthisconnection.

Advanced Modelling

OrderingRelationsandAttributes

Advanced ModellingAdvanced Modelling

34

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

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

Advanced Modelling

ExtensionsandRoles

Advanced ModellingAdvanced Modelling

36

Recap:ExtensionsandRoles

• Objectscanonlybeofonetype.

• Youhavetouseextensionswiththeirownrelationsandattributesifyouwanttoexpressadditionalfeatures.

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

Advanced ModellingAdvanced Modelling

37

Recap:ExtensionsandRoles

Advanced ModellingAdvanced Modelling

38

Recap:Extensions

• Objectscanhaveonlyonedefiningtype(asopposedtotype!).• Additionalcategorisationsofenhancementswithownrelationsandattributes.

Advanced ModellingAdvanced Modelling

39

Recap:Extensions

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

• Changesfortheroleofthepersonmustbemadeonlyontheroleobject,notonallpeopleassociated.

Advanced ModellingAdvanced Modelling

40

Recap:Extensions

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

Advanced ModellingAdvanced Modelling

41

DefininganExtension

Advanced ModellingAdvanced Modelling

42

Defining anExtension

Advanced ModellingAdvanced Modelling

43

Defining anExtension

Advanced ModellingAdvanced Modelling

44

Defining anExtension

Advanced ModellingAdvanced Modelling

45

Defining anExtension

Advanced ModellingAdvanced Modelling

46

UsinganExtension

Allpossiblerelationsforanobjectoftype

person

Advanced ModellingAdvanced Modelling

47

Using anExtension

Advanced ModellingAdvanced Modelling

48

Using anExtension

Advanced ModellingAdvanced Modelling

49

Using anExtension

Advanced ModellingAdvanced Modelling

50

Using anExtension

Allpossiblerelationsforanobjectoftype

personandtheextensionMusician

Advanced Modelling

Meta-Properties

Advanced ModellingAdvanced Modelling

52

Recap:Metaproperties

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

changed at

changed at

is member of

Advanced ModellingAdvanced Modelling

53

Recap:Metaproperties

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

Advanced ModellingAdvanced Modelling

54

Defining aMetattribute

Advanced ModellingAdvanced Modelling

55

Defining aMetaattribute

Advanced ModellingAdvanced Modelling

56

Defining aMetaattribute

Advanced ModellingAdvanced Modelling

57

Defining aMetaattribute

Advanced ModellingAdvanced Modelling

58

Using aMetaattribute

Clickrightonthepropertyyouwant

toaddaMetaattributeto

Advanced ModellingAdvanced Modelling

59

Using aMetaattribute

Advanced ModellingAdvanced Modelling

60

Using aMetaattribute

Advanced ModellingAdvanced Modelling

61

Using aMetaattribute

Advanced ModellingAdvanced Modelling

62

Defining aMetarelation

Advanced ModellingAdvanced Modelling

63

Defining aMetarelation

Advanced ModellingAdvanced Modelling

64

Using aMetarelation

Clickrightonthepropertyyouwant

toaddaMetarelationto

Advanced ModellingAdvanced Modelling

65

Using aMetarelation

Advanced ModellingAdvanced Modelling

66

Using aMetarelation

Advanced Modelling

Remodelling

Advanced ModellingAdvanced Modelling

68

Changing the Object Typeof Objects

Movealldirectobjectsofanobject-typetoanotertype:

Rightclickonthetypethatcontainstheobjects

Advanced ModellingAdvanced Modelling

69

ChangingtheObjectTypeofObjects

Enterthetypeyouwishtomovetheobjectto

Makesurethetypeyou‘rechoosingisnotabstract

Thesamewayyoucan„morph“relationsofarelationtypeintoanotherrelationtype

andattributes

Advanced Modelling

CreateaNewSub-Network

Advanced ModellingAdvanced Modelling

71

CreateaNewSub-Network

• Forabetteroverviewitcanbeusefull tocreateanewsub-network

• Thesample-networkhascurrently4sub-networks

• Onlyadministratorscancreatenewsub-networks

Advanced ModellingAdvanced Modelling

72

CreateaNewSub-Network

• Toseeallthesub-networksclickonthecog-symbolandselect„TopTypes“

Advanced ModellingAdvanced Modelling

73

CreateaNewSub-Network

• Nameyournew-sub-networkandyouwillseeitaddedtotheothersub-networks

• Sub-networkscanstillusetherelationsoftheothersub-networks

Advanced Modelling

Exercises

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.

Advanced Modelling

Sendyour questions to:contact-webinar@i-views.com

Consultationhours:EveryWednesday

Thank you for visitingi-viewsUniversity

Advanced ModellingAdvanced Modelling

77

UnsereneuenIcons

top related