Semantic MediaWiki Workshop

1,887 views

Published on

Published in: Education, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,887
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
45
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • A SMW adds a few new features to MW, but these additions don't affect the existing functionality of the wiki. The wiki is exactly the same as it was before SMW was installed The new featuers are broadly related to 'knowledge management', and at the simplest level, they allow facts to be added to pages. The added 'factts' give users several new functions.
  • Back to where we started: Motivation for SMW
  • Looks like a regular wiki (couple of pages)‏
  • Looks like a normal wiki: EDIT tab! Other regular page features: Logo, tabs, sidebar, etc.
  • Fact page! We see the presentation of some some structured data, and a factbox (both optional but common features). The normal 'edit' tab is joined by a new 'edit with form' tab on certain pages... Sign that it is probably a SMW. Like a regular wiki, we have 'red-links' for non-existent pages. I'll talk more about how red-links are different in SMW later.
  • Edit with form gives you funky new data entry capabilities. Form auto completion. Form validation (datatypes, formats, etc.)‏ Upon saving, you get the factbox presenting the data you added.
  • Dynamic query, returning the facts from the fact page! Doesn't look like much, but its everything you need to build a community database! Dynamic Clickable, Sortable, Customizable, ...
  • Visualization of queried data...
  • Visualization of queried data...
  • More visualizations...
  • More visualizations...
  • More visualizations...
  • Semantic web! Er... yup!
  • Semantic web! Er... yup!
  • Semantic web! Er... yup!
  • Take 5... Talk... Come ask me a question... Use the bathroom... Leave...
  • Properties have just a few basic types... Pages are collections of properties, values and other information 'Complex' type
  • Take 5... Talk... Come ask me a question... Use the bathroom... Leave...
  • Semantic MediaWiki Workshop

    1. 1. Semantic MediaWiki <ul><li>A community database </li></ul><ul><ul><li>... and more! </li></ul></ul><ul><ul><li>Dan Bolser </li></ul></ul><ul><ul><li>NETTAB 2010 workshop: Biological Wikis </li></ul></ul><ul><ul><li>November 29th, 2010 </li></ul></ul>
    2. 2. Do ask questions !
    3. 3. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    4. 4. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    5. 5. What is SMW? <ul><li>SMW is a regular wiki </li></ul><ul><ul><li>MediaWiki -> Wikipedia </li></ul></ul><ul><li>With some new features: </li></ul><ul><ul><li>Knowledge management </li></ul></ul><ul><ul><li>Add 'facts' to pages </li></ul></ul><ul><ul><li>New functionality emerges </li></ul></ul>
    6. 26. What is SMW? <ul><li>SMW is a regular wiki </li></ul><ul><ul><li>MediaWiki -> Wikipedia </li></ul></ul><ul><li>With some new features: </li></ul><ul><ul><li>Knowledge management </li></ul></ul><ul><ul><li>Add 'facts' to pages </li></ul></ul><ul><ul><li>New functionality emerges </li></ul></ul>
    7. 27. Example 'facts'
    8. 28. Example 'facts'
    9. 29. Example 'facts' <ul><li>Scottish writer </li></ul><ul><ul><li>Novels, poetry, children's, historical, horror, short stories, travel. </li></ul></ul><ul><ul><li>Born Edinburgh, 1850. Died of cerebral hemorrhage, 1894. </li></ul></ul><ul><ul><li>Attended Edinburgh university. </li></ul></ul>
    10. 30. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    11. 31. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    12. 32. SMW Demo http://pgscdemo.referata.com http://prodstat.referata.com http://discoursedb.org http://sandbox.referata.com
    13. 33. SMW Demo
    14. 34. SMW Demo
    15. 35. SMW Demo
    16. 36. SMW Demo
    17. 37. SMW Demo
    18. 38. SMW Demo
    19. 39. SMW Demo
    20. 40. SMW Demo
    21. 41. SMW Demo
    22. 42. SMW Demo
    23. 43. SMW Demo
    24. 44. SMW Demo
    25. 45. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    26. 46. Overview <ul><li>What is SMW? </li></ul><ul><ul><li>Motivation </li></ul></ul><ul><ul><li>Frontend </li></ul></ul><ul><ul><ul><li>What you see as a user of SMW </li></ul></ul></ul><ul><ul><li>Backend </li></ul></ul><ul><ul><ul><li>What you do as a SMW site developer </li></ul></ul></ul>
    27. 47. Overview <ul><li>Data </li></ul><ul><li>Properties and types </li></ul><ul><li>Classes </li></ul><ul><li>Templates </li></ul><ul><li>Forms </li></ul><ul><li>Queries </li></ul><ul><li>Zzz... </li></ul>
    28. 48. Data <ul><li>Triples are used for modelling data </li></ul><ul><ul><li>Similar to relational data models </li></ul></ul><ul><ul><li>More generic </li></ul></ul><ul><li>A triple has three parts: </li></ul><ul><ul><li>Subject – Predicate – Object </li></ul></ul><ul><li>In SMW this is simplified to match the page model of the wiki (facts on a page): </li></ul><ul><ul><li>Page – Property – Value </li></ul></ul>
    29. 49. Properties <ul><li>Properties are added to pages using very simple syntax: </li></ul><ul><li>Stan Bolton : </li></ul><ul><ul><li>[[ Has name :: Stan ]] </li></ul></ul><ul><ul><li>[[ Has initials :: SB ]] </li></ul></ul><ul><ul><li>[[ Has dob :: 16/02/78 ] </li></ul></ul><ul><ul><li>[[ Has weight :: 90 kg ]] </li></ul></ul>
    30. 50. Properties <ul><li>Properties are added to pages using very simple syntax: </li></ul><ul><li>Stan Bolton : </li></ul><ul><ul><li>[[ Has name :: Stan ]] </li></ul></ul><ul><ul><li>[[ Has initials :: SB ]] </li></ul></ul><ul><ul><li>[[ Has dob :: 16/02/78 ] </li></ul></ul><ul><ul><li>[[ Has weight :: 90 kg ]] </li></ul></ul>
    31. 51. Example 'facts' <ul><li>Scottish writer </li></ul><ul><ul><li>Novels, poetry, children's, historical, horror, short stories, travel. </li></ul></ul><ul><ul><li>Born Edinburgh, 1850. Died of cerebral hemorrhage, 1894. </li></ul></ul><ul><ul><li>Attended Edinburgh university. </li></ul></ul>
    32. 52. Example 'facts' <ul><li>Scottish writer </li></ul><ul><ul><li>Novels, poetry, children's, historical, horror, short stories, travel. </li></ul></ul><ul><ul><li>Born Edinburgh, 1850. Died of cerebral hemorrhage, 1894. </li></ul></ul><ul><ul><li>Attended Edinburgh university. </li></ul></ul><ul><li>Robert Louis Stevenson : </li></ul><ul><ul><li>[[ born in :: Edinburgh ]] </li></ul></ul><ul><ul><li>[[ has dob :: 1850 ]] </li></ul></ul><ul><ul><li>[[ died of :: cerebral hemorrhage ]] </li></ul></ul><ul><ul><li>[[ has dod :: 1894 ]] </li></ul></ul><ul><ul><li>[[ attended university :: Edinburgh ]] </li></ul></ul>
    33. 53. Property types <ul><li>Each property has its own page in the wiki </li></ul><ul><li>By setting the value of a ' special property ' on the property's page , you set the type of the property </li></ul>
    34. 54. Property types <ul><li>Each property has its own page in the wiki </li></ul><ul><li>By setting the value of a ' special property ' on the property's page , you set the type of the property </li></ul><ul><li>Property:has name :[[ has type :: String ]] </li></ul><ul><li>Property:has dob :[[ has type :: Date ]] </li></ul><ul><li>Property:has weight : [[ has type :: Number ]] </li></ul>
    35. 55. Property types <ul><li>Allow the proper layout of values in a table </li></ul><ul><li>Allow queries to have proper range constraints </li></ul><ul><li>Allow forms to be validated against user input </li></ul>
    36. 56. Properties have simple types: string, date, number, etc. How do we 'type' a page? Classes
    37. 57. Classes <ul><li>Pages can be 'typed' by defining them as members of a  class </li></ul><ul><ul><li>Class membership is determined by using wiki categories </li></ul></ul><ul><li>Pages in a class are expected to carry a similar set of properties... </li></ul>
    38. 58. Classes <ul><li>Pages can be 'typed' by defining them as members of a  class </li></ul><ul><ul><li>Class membership is determined by using wiki categories </li></ul></ul><ul><li>Pages in a class are expected to carry a similar set of properties... </li></ul>Car Sports Car Bubble Car
    39. 59. Classes <ul><li>Car </li></ul><ul><ul><li>Top speed </li></ul></ul><ul><ul><li>Doors </li></ul></ul><ul><ul><li>Price </li></ul></ul><ul><ul><li>... </li></ul></ul>
    40. 62. <ul><li>Property:works in :[[ has type :: Page ]] [[ has default form :: </li></ul><ul><ul><ul><li>Institute ]] </li></ul></ul></ul>
    41. 63. RDF
    42. 64. Overview <ul><li>Data </li></ul><ul><li>Properties and types </li></ul><ul><li>Classes </li></ul><ul><li>Templates </li></ul><ul><li>Forms </li></ul><ul><li>Queries </li></ul><ul><li>Zzz!!! </li></ul>
    43. 65. Templates <ul><li>A template is 'called' from any other page </li></ul><ul><ul><li>Very useful feature </li></ul></ul><ul><li>Used for common things </li></ul><ul><li>Used for data (presentation)‏ </li></ul><ul><li>{{ car </li></ul><ul><li>| top speed = 200 </li></ul><ul><li>| doors = 5 </li></ul><ul><li>| price = 120000 </li></ul><ul><li>| ... </li></ul><ul><li>}} </li></ul>
    44. 66. Templates <ul><li>Ferrari 612 Scaglietti : </li></ul><ul><li>{{ Infobox Automobile </li></ul><ul><li>| name = Ferrari 612 Scaglietti </li></ul><ul><li>| manufacturer = Ferrari </li></ul><ul><li>| body_style = 2-door coupé </li></ul><ul><li>| production = 2004-present </li></ul><ul><li>| engine = 5.7 L </li></ul><ul><li>| length = 4902 </li></ul><ul><li>| width=1956 </li></ul><ul><li>| ... </li></ul><ul><li>}} </li></ul>
    45. 67. Templates <ul><li>Used for data (presentation)‏ </li></ul><ul><li>Can be reused for data definition... </li></ul><ul><ul><li>Semantic Templates </li></ul></ul><ul><ul><li>The place where facts are defined </li></ul></ul>
    46. 68. Templates <ul><li>Used for data (presentation)‏ </li></ul><ul><li>Can be reused for data definition... </li></ul><ul><ul><li>Semantic Templates </li></ul></ul><ul><ul><li>The place where facts are defined </li></ul></ul><ul><li>Template:Car : </li></ul><ul><li>[[ Has top speed :: {{{top speed}}} ]] </li></ul><ul><li>[[ Has doors :: {{{doors}}} ]] </li></ul><ul><li>[[ Has price :: {{{price}}} ]] </li></ul><ul><li>... </li></ul><ul><li>[[ Category:Car ]] </li></ul>
    47. 69. factbox
    48. 70. Forms <ul><li>Forms are used to edit templates </li></ul><ul><ul><ul><li>Very useful feature in their own right </li></ul></ul></ul><ul><li>Typically, each class has one form </li></ul><ul><ul><li>Form fields edit template parameters </li></ul></ul><ul><ul><ul><li>Template parameters set properties </li></ul></ul></ul><ul><ul><li>Each field is automatically 'typed' according to it's property! </li></ul></ul><ul><ul><li>Fields auto complete based on existing property values! </li></ul></ul>
    49. 72. Ask queries <ul><li>Ask for all pages in a Class: </li></ul><ul><ul><li>{{#ask: [[ Category: <my class> ]] }} </li></ul></ul><ul><li>The same, but return some specific properties: </li></ul><ul><ul><li>{{#ask: [[ Category: <my class> ]] </li></ul></ul><ul><ul><li>|? <my prop1> |? <my prop2> |? }} </li></ul></ul><ul><li>Ask for some cheap goods: </li></ul><ul><ul><li>{{#ask: [[ Price ::< 5 usd ]] }} </li></ul></ul>
    50. 74. SMW provides new functionality <ul><li>Structure </li></ul><ul><li>Forms for editing </li></ul><ul><li>Dynamic queries </li></ul><ul><ul><li>Visualization </li></ul></ul><ul><li>Linked data </li></ul><ul><li>Navigation </li></ul>
    51. 75. Acknowledgements <ul><li>Markus Krötzsch </li></ul><ul><li>Denny Vrandečić </li></ul><ul><ul><li>All SMW developers </li></ul></ul><ul><li>NETTAB </li></ul><ul><li>Yaron Koren </li></ul><ul><ul><li>All SMW extension devs. </li></ul></ul><ul><li>People who do what they love </li></ul>
    52. 76. Appendices
    53. 77. 'Getting started' <ul><li>Figure out your data structure </li></ul><ul><ul><li>Classes and properties </li></ul></ul><ul><li>Create templates and properties </li></ul><ul><li>Create forms </li></ul><ul><ul><li>To add and edit the different page 'types' </li></ul></ul><ul><li>Enable links to forms </li></ul><ul><ul><li>[[ Has default form :: ... ]] </li></ul></ul><ul><li>Add data! </li></ul>
    54. 78. BioWikis using SMW <ul><li>SNPedia </li></ul><ul><ul><li>http://snpedia.org </li></ul></ul><ul><li>SEQwiki </li></ul><ul><ul><li>http://seqwiki.org </li></ul></ul><ul><li>NeuroLex </li></ul><ul><ul><li>http://neurolex.org </li></ul></ul><ul><li>GeneWiki (?)‏ </li></ul><ul><ul><li>http://genewiki.org </li></ul></ul><ul><li>Many more... </li></ul><ul><li>http://nettab.referata.com/wiki/BioWiki </li></ul>
    55. 79. Systems similar to SMW <ul><li>Dynamic page lists </li></ul><ul><ul><li>http://www.mediawiki.org/wiki/DynamicPageList </li></ul></ul><ul><li>Table edit </li></ul><ul><ul><li>http://www.mediawiki.org/wiki/Extension:TableEdit </li></ul></ul><ul><li>OmegaWiki </li></ul><ul><ul><li>http://www.omegawiki.org </li></ul></ul><ul><li>Others... </li></ul><ul><ul><li>http://en.wikipedia.org/wiki/Semantic_wiki </li></ul></ul>
    56. 80. References <ul><li>SMW </li></ul><ul><ul><li>http://semantic-mediawiki.org </li></ul></ul><ul><li>Properties with units: </li></ul><ul><ul><li>http://semantic-mediawiki.org/wiki/Custom_units </li></ul></ul><ul><li>Classes </li></ul><ul><li>Templates </li></ul><ul><ul><li>http://www.mediawiki.org/wiki/Help:Templates </li></ul></ul>
    57. 81. References <ul><li>Forms </li></ul><ul><ul><li>http://www.mediawiki.org/wiki/ Extension:Semantic_Forms </li></ul></ul><ul><li>Ask queries </li></ul><ul><ul><li>http://semantic-mediawiki.org/wiki/ Help:Inline_queries </li></ul></ul>
    58. 82. Your semantic web!
    59. 83. He said what?

    ×