semantic mediawiki a community database and more
play

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


  1. Semantic MediaWiki A community database ... and more! Dan Bolser NETTAB 2010 workshop: Biological Wikis November 29th, 2010

  2. Do ask questions !

  3. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  4. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  5. What is SMW?  SMW is a regular wiki  MediaWiki → Wikipedia  With some new features:  Knowledge management  Add 'facts' to pages  New functionality emerges

  6. What is SMW?  SMW is a regular wiki  MediaWiki → Wikipedia  With some new features:  Knowledge management  Add 'facts' to pages  New functionality emerges

  7. Example 'facts'

  8. Example 'facts'

  9. Example 'facts' Scottish writer  Novels, poetry, children's,  historical, horror, short stories, travel. Born Edinburgh, 1850. Died  of cerebral hemorrhage, 1894. Attended Edinburgh  university.

  10. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  11. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  12. SMW Demo http://pgscdemo.referata.com http://prodstat.referata.com http://discoursedb.org http://sandbox.referata.com

  13. SMW Demo

  14. SMW Demo

  15. SMW Demo

  16. SMW Demo

  17. SMW Demo

  18. SMW Demo

  19. SMW Demo

  20. SMW Demo

  21. SMW Demo

  22. SMW Demo

  23. SMW Demo

  24. SMW Demo

  25. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  26. Overview  What is SMW?  Motivation  Frontend  What you see as a user of SMW  Backend  What you do as a SMW site developer

  27. Overview 1) Data 2) Properties and types 3) Classes Zzz... 4) Templates 5) Forms 6) Queries

  28. 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

  29. 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]]

  30. 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]]

  31. Example 'facts' Scottish writer  Novels, poetry, children's,  historical, horror, short stories, travel. Born Edinburgh, 1850. Died  of cerebral hemorrhage, 1894. Attended Edinburgh  university.

  32. Example 'facts' Scottish writer Robert Louis Stevenson:  Novels, poetry, children's,  [[born in:: Edinburgh]] historical, horror, short stories, travel. [[has dob::1850]] Born Edinburgh, 1850. Died  of cerebral hemorrhage, [[died of:: 1894. cerebral hemorrhage]] Attended Edinburgh  university. [[has dod::1894]] [[attended university:: Edinburgh]]

  33. Property types  Each property has its own page in the wiki  By setting the value of a ' special property ' on the property's page , you set the type of the property

  34. Property types  Each property has its Property:has name: own page in the wiki [[ has type ::String]]  By setting the value Property:has dob: of a ' special [[ has type ::Date]] property ' on the property's page , you Property:has weight: set the type of the [[ has type ::Number]] property

  35. 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

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

  37. 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...

  38. Classes  Pages can be 'typed' Car by defining them as members of a class  Class membership is determined by using Sports Bubble wiki categories Car Car  Pages in a class are expected to carry a similar set of properties...

  39. Classes  Car  Top speed  Doors  Price  ...

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

  41. RDF

  42. Overview 1) Data 2) Properties and types 3) Classes Zzz!!! 4) Templates 5) Forms 6) Queries

  43. Templates  A template is 'called' {{ car from any other page | top speed = 200  Very useful feature | doors = 5  Used for common | price = 120000 things | ...  Used for data }} (presentation)

  44. 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 | ... }}

  45. Templates  Used for data (presentation)  Can be reused for data definition...  Semantic Templates  The place where facts are defined

  46. Templates Template:Car:  Used for data [[Has top speed:: (presentation) {{{top speed}}} ]]  Can be reused for data definition... [[Has doors:: {{{doors}}} ]]  Semantic Templates  The place where facts [[Has price:: are defined {{{price}}} ]] ... [[ Category:Car ]]

  47. factbox

  48. 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!

  49. 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 ]] }}

  50. SMW provides new functionality  Structure  Forms for editing  Dynamic queries  Visualization  Linked data  Navigation

  51. Acknowledgements  Markus Krötzsch  Denny Vrandečić  All SMW developers  NETTAB  Yaron Koren  All SMW extension devs.  People who do what they love

  52. Appendices

  53. '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!

  54. BioWikis using SMW  SNPedia  Many more...  http://snpedia.org  http://nettab.referata.co  SEQwiki m/wiki/BioWiki  http://seqwiki.org  NeuroLex  http://neurolex.org  GeneWiki (?)  http://genewiki.org

  55. 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

  56. 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

  57. References  Forms  http://www.mediawiki.org/wiki/ Extension:Semantic_Forms  Ask queries  http://semantic­mediawiki.org/wiki/ Help:Inline_queries 

  58. Your semantic web!

  59. He said what?

Recommend


More recommend