Semantic MediaWiki A community database ... and more! Dan Bolser - - PowerPoint PPT Presentation

semantic mediawiki a community database and more
SMART_READER_LITE
LIVE PREVIEW

Semantic MediaWiki A community database ... and more! Dan Bolser - - PowerPoint PPT Presentation

Semantic MediaWiki A community database ... and more! Dan Bolser NETTAB 2010 workshop: Biological Wikis November 29th, 2010 Do ask questions ! Overview What is SMW? Motivation Frontend What you see as a user of SMW


slide-1
SLIDE 1

Semantic MediaWiki A community database ... and more!

Dan Bolser

NETTAB 2010 workshop: Biological Wikis November 29th, 2010

slide-2
SLIDE 2

Do ask questions

!

slide-3
SLIDE 3

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-4
SLIDE 4

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-5
SLIDE 5

What is SMW?

 SMW is a regular wiki

 MediaWiki

→ Wikipedia

 With some new

features:

 Knowledge

management

 Add 'facts' to pages  New functionality

emerges

slide-6
SLIDE 6
slide-7
SLIDE 7
slide-8
SLIDE 8
slide-9
SLIDE 9
slide-10
SLIDE 10
slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13
slide-14
SLIDE 14
slide-15
SLIDE 15
slide-16
SLIDE 16
slide-17
SLIDE 17
slide-18
SLIDE 18
slide-19
SLIDE 19
slide-20
SLIDE 20
slide-21
SLIDE 21
slide-22
SLIDE 22
slide-23
SLIDE 23
slide-24
SLIDE 24
slide-25
SLIDE 25
slide-26
SLIDE 26

What is SMW?

 SMW is a regular wiki

 MediaWiki

→ Wikipedia

 With some new

features:

 Knowledge

management

 Add 'facts' to pages  New functionality

emerges

slide-27
SLIDE 27

Example 'facts'

slide-28
SLIDE 28

Example 'facts'

slide-29
SLIDE 29

Example 'facts'

Scottish writer

Novels, poetry, children's, historical, horror, short stories, travel.

Born Edinburgh, 1850. Died

  • f cerebral hemorrhage,

1894.

Attended Edinburgh university.

slide-30
SLIDE 30

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-31
SLIDE 31

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-32
SLIDE 32

SMW Demo

http://pgscdemo.referata.com http://prodstat.referata.com http://discoursedb.org http://sandbox.referata.com

slide-33
SLIDE 33

SMW Demo

slide-34
SLIDE 34

SMW Demo

slide-35
SLIDE 35

SMW Demo

slide-36
SLIDE 36

SMW Demo

slide-37
SLIDE 37

SMW Demo

slide-38
SLIDE 38

SMW Demo

slide-39
SLIDE 39

SMW Demo

slide-40
SLIDE 40

SMW Demo

slide-41
SLIDE 41

SMW Demo

slide-42
SLIDE 42

SMW Demo

slide-43
SLIDE 43

SMW Demo

slide-44
SLIDE 44

SMW Demo

slide-45
SLIDE 45

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-46
SLIDE 46

Overview

 What is SMW?

 Motivation  Frontend

 What you see as a

user of SMW

 Backend

 What you do as a

SMW site developer

slide-47
SLIDE 47

Overview

1) Data 2) Properties and types 3) Classes 4) Templates 5) Forms 6) Queries

Zzz...

slide-48
SLIDE 48

Data

 Triples are used for modelling data

 Similar to relational data models  More generic

 A triple has three parts:

 Subject – Predicate – Object

 In SMW this is simplified to match the page

model of the wiki (facts on a page):

 Page – Property – Value

slide-49
SLIDE 49

Properties

 Properties are added to

pages using very simple syntax: Stan Bolton: [[Has name::Stan]] [[Has initials::SB]] [[Has dob::16/02/78] [[Has weight::90 kg]]

slide-50
SLIDE 50

Properties

 Properties are added to

pages using very simple syntax: Stan Bolton: [[Has name::Stan]] [[Has initials::SB]] [[Has dob::16/02/78] [[Has weight::90 kg]]

slide-51
SLIDE 51

Example 'facts'

Scottish writer

Novels, poetry, children's, historical, horror, short stories, travel.

Born Edinburgh, 1850. Died

  • f cerebral hemorrhage,

1894.

Attended Edinburgh university.

slide-52
SLIDE 52

Example 'facts'

Scottish writer

Novels, poetry, children's, historical, horror, short stories, travel.

Born Edinburgh, 1850. Died

  • f cerebral hemorrhage,

1894.

Attended Edinburgh university.

Robert Louis Stevenson: [[born in:: Edinburgh]] [[has dob::1850]] [[died of:: cerebral hemorrhage]] [[has dod::1894]] [[attended university:: Edinburgh]]

slide-53
SLIDE 53

Property types

 Each property has its

  • wn page in the wiki

 By setting the value

  • f a 'special

property' on the property's page, you set the type of the property

slide-54
SLIDE 54

Property types

 Each property has its

  • wn page in the wiki

 By setting the value

  • f a 'special

property' on the property's page, you set the type of the property Property:has name: [[has type::String]] Property:has dob: [[has type::Date]] Property:has weight:

[[has type::Number]]

slide-55
SLIDE 55

Property types

 Allow the proper

layout of values in a table

 Allow queries to have

proper range constraints

 Allow forms to be

validated against user input

slide-56
SLIDE 56

Properties have simple types: string, date, number, etc. How do we 'type' a page?

Classes

slide-57
SLIDE 57

Classes

 Pages can be 'typed'

by defining them as members of a class

 Class membership is

determined by using wiki categories

 Pages in a class are

expected to carry a similar set of properties...

slide-58
SLIDE 58

Classes

 Pages can be 'typed'

by defining them as members of a class

 Class membership is

determined by using wiki categories

 Pages in a class are

expected to carry a similar set of properties...

Car

Sports Car Bubble Car

slide-59
SLIDE 59

Classes

 Car

 Top speed  Doors  Price  ...

slide-60
SLIDE 60
slide-61
SLIDE 61
slide-62
SLIDE 62

Property:works in: [[has type::Page]] [[has default form:: Institute]]

slide-63
SLIDE 63

RDF

slide-64
SLIDE 64

Overview

1) Data 2) Properties and types 3) Classes 4) Templates 5) Forms 6) Queries

Zzz!!!

slide-65
SLIDE 65

Templates

 A template is 'called'

from any other page

 Very useful feature

 Used for common

things

 Used for data

(presentation) {{ car | top speed = 200 | doors = 5 | price = 120000 | ... }}

slide-66
SLIDE 66

Templates

Ferrari 612 Scaglietti: {{ Infobox Automobile | name = Ferrari 612 Scaglietti | manufacturer = Ferrari | body_style = 2­door coupé | production = 2004­present | engine = 5.7 L | length = 4902 | width=1956 | ... }}

slide-67
SLIDE 67

Templates

 Used for data

(presentation)

 Can be reused for

data definition...

 Semantic Templates  The place where facts

are defined

slide-68
SLIDE 68

Templates

 Used for data

(presentation)

 Can be reused for

data definition...

 Semantic Templates  The place where facts

are defined

Template:Car: [[Has top speed:: {{{top speed}}} ]] [[Has doors:: {{{doors}}} ]] [[Has price:: {{{price}}} ]] ... [[ Category:Car ]]

slide-69
SLIDE 69

factbox

slide-70
SLIDE 70

Forms

 Forms are used to edit templates

 Very useful feature in their own right

 Typically, each class has one form

 Form fields edit template parameters

 Template parameters set properties

 Each field is automatically 'typed' according to it's

property!

 Fields auto complete based on existing property

values!

slide-71
SLIDE 71
slide-72
SLIDE 72

Ask queries

 Ask for all pages in a Class:

{{#ask: [[ Category: <my class> ]] }}

 The same, but return some specific properties:

{{#ask: [[ Category: <my class> ]] |? <my prop1> |? <my prop2> |? }}

 Ask for some cheap goods:

{{#ask: [[ Price ::< 5 usd ]] }}

slide-73
SLIDE 73
slide-74
SLIDE 74

SMW provides new functionality

 Structure  Forms for editing  Dynamic queries

 Visualization

 Linked data  Navigation

slide-75
SLIDE 75

Acknowledgements

 Markus Krötzsch  Denny Vrandečić

 All SMW developers

 NETTAB  Yaron Koren

 All SMW extension devs.

 People who do what they

love

slide-76
SLIDE 76

Appendices

slide-77
SLIDE 77

'Getting started'

1) Figure out your data structure

 Classes and properties

2) Create templates and properties 3) Create forms

 To add and edit the different page 'types'

4) Enable links to forms

 [[Has default form:: ... ]]

5) Add data!

slide-78
SLIDE 78

BioWikis using SMW

 SNPedia

 http://snpedia.org

 SEQwiki

 http://seqwiki.org

 NeuroLex

 http://neurolex.org

 GeneWiki (?)

 http://genewiki.org

 Many more...  http://nettab.referata.co

m/wiki/BioWiki

slide-79
SLIDE 79

Systems similar to SMW

 Dynamic page lists

 http://www.mediawiki.org/wiki/DynamicPageList

 Table edit

 http://www.mediawiki.org/wiki/Extension:TableEdit

 OmegaWiki

 http://www.omegawiki.org

 Others...

 http://en.wikipedia.org/wiki/Semantic_wiki

slide-80
SLIDE 80

References

 SMW

 http://semantic­mediawiki.org

 Properties with units:

 http://semantic­mediawiki.org/wiki/Custom_units

 Classes

 Templates

 http://www.mediawiki.org/wiki/Help:Templates

slide-81
SLIDE 81

References

 Forms

 http://www.mediawiki.org/wiki/

Extension:Semantic_Forms

 Ask queries

 http://semantic­mediawiki.org/wiki/

Help:Inline_queries

slide-82
SLIDE 82

Your semantic web!

slide-83
SLIDE 83

He said what?