A Short Tutorial to Semantic Media Wiki (SMW)


Published on

Published in: Technology, Education
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Example for method 1.1: follow “Survivor” link in “Main Page”  “Survivor” Example for method 1.2: follow “ RealityTelevisionShow ” link in “Survivor”  “Category:RealityTelevisionShow” follow “Category” link in “Category:RealityTelevisionShow”  “Categories” Example for method 2.1: follow “Main Page” in navigation  “Main Page” Example for method 2.2: follow “what links here” in “Main Page”  no inlinks to “Main Page” follow “what links here” in “Survivor”
  • A Short Tutorial to Semantic Media Wiki (SMW)

    1. 1. A Short Tutorial to Semantic Media Wiki (SMW) [[date:: July 21, 2009 ]] At [[part of:: Web Science Summer Research Week ]] By [[has speaker:: Jie Bao ]] and [[has speaker:: Li Ding ]] [[Category:Tutorial]]
    2. 2. <ul><li>#1 What is SMW? </li></ul><ul><li>#2 Editing </li></ul><ul><li>#3 Browsing </li></ul><ul><li>#4 Using Semantics </li></ul><ul><li>#5 Example Apps </li></ul><ul><li>#6 Additional Resources </li></ul>Outline
    3. 3. #1: What is SMW? <ul><li>An extension to MediaWiki – the wiki engine that powers Wikipedia </li></ul><ul><li>Allows semantic annotation </li></ul><ul><ul><li>Category : a group of things </li></ul></ul><ul><ul><ul><li>Student , Event, Talk </li></ul></ul></ul><ul><ul><li>Property : relation between two things </li></ul></ul><ul><ul><ul><li>“ A Short Tutorial to Semantic Media Wiki (SMW)” has speaker “Jie Bao” </li></ul></ul></ul><ul><ul><ul><li>SummerProgram2009 costs $950 </li></ul></ul></ul>
    4. 4. SMW is <ul><li>A wiki: simple, collaborative </li></ul><ul><li>Semantic Web in the small </li></ul><ul><li>A light-weight semantic database </li></ul><ul><li>A platform to build other apps </li></ul><ul><li>… </li></ul>
    5. 5. Exercise Wiki <ul><li>http://tw.rpi.edu/portal/SummerProgram2009 </li></ul><ul><li>(please create an account and log in) </li></ul>
    6. 6. <ul><li>#2: Editing </li></ul>
    7. 7. Create A New Page <ul><li>Click the “red links” </li></ul><ul><li>How to get the red links? </li></ul><ul><ul><li>Search “A new page” in search box, or </li></ul></ul><ul><ul><li>Add “[[A new page]]” on some existent page </li></ul></ul>
    8. 8. Non-semantic syntax <ul><li>Click “edit” tab to enter the editing page </li></ul><ul><li>Simple MediaWiki formatting syntax: </li></ul>Headings of different levels ==heading== ===level 1=== Bullet list * first * second Numbered list # one # two Link to another page on the wiki [[pagename]] Link to another page on the wiki, but show different text [[pagename|show_text]]
    9. 9. Semantic Annotation Syntax <ul><li>Categories and properties are also wiki pages </li></ul><ul><ul><li>Category:Talk </li></ul></ul><ul><ul><li>Property:date </li></ul></ul>Description Syntax Example Assign a page to a category [[Category:categoryname]] [[ Category:Talk ]] Add a property (with value) to a page [[propertyname::value]] [[ date::July 21, 2009 ]] Add a property (with value) to a page, but show “show_value” [[propertyname::value|show_value]] [[ date::July 21, 2009|21st July ]]
    10. 10. Advanced Topics (not covered here) <ul><li>Inline queries </li></ul><ul><li>Semantic templates and forms </li></ul><ul><li>Importing and exporting data </li></ul><ul><li>Graphic user interface (Halo extension) </li></ul><ul><li>Many more extensions… </li></ul><ul><li>More on http://semantic-mediawiki.org/wiki/Help:SMW_extensions </li></ul>
    11. 11. Exercise <ul><li>Write something about yourself: </li></ul><ul><li>http://tw.rpi.edu/portal/SummerProgram2009 </li></ul>
    12. 12. #3: Browsing <ul><li>Methods for browsing the regular wiki </li></ul><ul><ul><li>Similar to browsing a website </li></ul></ul><ul><ul><li>Some links specific to the wiki </li></ul></ul><ul><ul><ul><li>“ what links here” in the toolbox sidebar </li></ul></ul></ul><ul><li>Methods for browsing the annotated data </li></ul><ul><ul><li>Factbox </li></ul></ul><ul><ul><li>Property links to property pages </li></ul></ul><ul><ul><li>Category links to category pages </li></ul></ul><ul><ul><li>Semantic browsing </li></ul></ul>
    13. 13. Browsing - Track changes <ul><li>Track changes on the whole Wiki </li></ul><ul><ul><li>use “ Recent changes ” in the navigation sidebar </li></ul></ul><ul><li>Track changes on one wiki page </li></ul><ul><ul><li>use the “ history ” tab </li></ul></ul><ul><li>Track changes on pages related to one wiki page </li></ul><ul><ul><li>Use the “ Related changes ” in the toolbox sidebar </li></ul></ul><ul><li>Track semantic changes of triples (an extension) </li></ul><ul><ul><li>Example: http://tw.rpi.edu/semhis </li></ul></ul>
    14. 14. <ul><li>#4: Using Semantics </li></ul>
    15. 15. For End Users Improved Semantic Data Generation <ul><li>Before </li></ul><ul><ul><li>Use RDF syntax </li></ul></ul><ul><ul><li>Use Editor </li></ul></ul><ul><li>After </li></ul><ul><ul><li>From structured data </li></ul></ul><ul><ul><li>Use SMW syntax </li></ul></ul><ul><ul><li>Use Form </li></ul></ul><?xml version=&quot;1.0&quot;?> <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;> <rdf:Description rdf:about=&quot;http://www.w3.org/&quot;> <dc:title>World Wide Web Consortium</dc:title> </rdf:Description> </rdf:RDF>
    16. 16. For End Users Smart Data Propagation <ul><li>Data can be easily propagated via semantic query, e.g. the project and publications are included from others’ input </li></ul><ul><li>Data can be propagated smartly using wiki-script based inference, e.g. “James A. Hendler” has an alias “Jim Hendler” </li></ul>
    17. 17. For Developers SMW is a ready-to-use semantic web workbench
    18. 18. For Developers SMW Enables Fast Prototyping <ul><li>Learning Curve (before) </li></ul><ul><ul><li>Web languages: HTML, CSS </li></ul></ul><ul><ul><li>Semantic web languages: RDF, RDFS, OWL, SPARQL, </li></ul></ul><ul><ul><li>Web tools: web server (apache, tomcat), database (mysql), languages (PHP, Javascript) </li></ul></ul><ul><ul><li>Semantic web tools: editor (protégé, swoop), triple store (sesame), ontology reasoners (pellet, racer), Programming API (jena), </li></ul></ul><ul><li>Learning Curve (after) </li></ul><ul><ul><li>Wiki syntax </li></ul></ul><ul><ul><li>Semantic wiki syntax and semantic form/template syntax </li></ul></ul><ul><ul><li>Web tools hidden by Wiki </li></ul></ul><ul><ul><li>Simplified SW tools via light-weight Wiki programming: </li></ul></ul><ul><ul><ul><li>Online authoring </li></ul></ul></ul><ul><ul><ul><li>Triple store </li></ul></ul></ul><ul><ul><ul><li>Semantic query with simple RDFS reasoning </li></ul></ul></ul>
    19. 19. For Developers <ul><li>SMW is a Web-based modeling tool </li></ul>
    20. 20. <ul><li>#5: Example Apps </li></ul>
    21. 21. Publication Repository http://tw.rpi.edu/wiki/Publication DBLP bibtex wiki markup
    22. 22. An Ontology Editor <ul><li>Template based OWL meta modeling with form support </li></ul><ul><li>Controlled natural language rendering (Rabbit, ACE, Yayan) </li></ul><ul><li>Limited rule inference to enhance the native RDFS inference </li></ul>http://tw.rpi.edu/proj/cnl
    23. 23. RPI Campus Map
    24. 24. #6 Additional Resources <ul><li>SMW site: http://semantic-mediawiki.org </li></ul><ul><li>A 1.5 hour video tutorial: http://videolectures.net/eswc08_vrandecic_sw/ </li></ul><ul><li>SMW +  User Forum: http://smwforum.ontoprise.com/ </li></ul><ul><li>Tetherless World Work on SMW http://tw.rpi.edu/wiki/Semantic_Portal_Wiki </li></ul>