A Short Tutorial to Semantic Media Wiki...
Transcript of A Short Tutorial to Semantic Media Wiki...
![Page 1: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/1.jpg)
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]]
1
![Page 2: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/2.jpg)
2
• #1 What is SMW?• #2 Editing• #3 Browsing• #4 Using Semantics• #5 Example Apps• #6 Additional Resources
Outline
![Page 3: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/3.jpg)
3
#1: What is SMW?• An extension to MediaWiki – the wiki engine that
powers Wikipedia
• Allows semantic annotation– Category: a group of things
• Student, Event, Talk– Property: relation between two things
• “A Short Tutorial to Semantic Media Wiki (SMW)” has speaker “Jie Bao”
• SummerProgram2009 costs $950
![Page 4: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/4.jpg)
SMW is
• A wiki: simple, collaborative• Semantic Web in the small• A light-weight semantic database• A platform to build other apps• …
4
![Page 5: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/5.jpg)
Exercise Wiki
http://tw.rpi.edu/portal/SummerProgram2009
(please create an account and log in)
5
![Page 6: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/6.jpg)
6
#2: Editing
![Page 7: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/7.jpg)
Create A New Page
• Click the “red links”
• How to get the red links?– Search “A new page” in search box, or– Add “[[A new page]]” on some existent page
7
![Page 8: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/8.jpg)
8
Non-semantic syntax• Click “edit” tab to enter the editing page• Simple MediaWiki formatting syntax:
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]]
![Page 9: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/9.jpg)
9
Semantic Annotation Syntax
Description Syntax ExampleAssign 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]]
Categories and properties are also wiki pages• Category:Talk• Property:date
![Page 10: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/10.jpg)
Advanced Topics(not covered here)
• Inline queries• Semantic templates and forms• Importing and exporting data• Graphic user interface (Halo extension)• Many more extensions…
More on http://semantic-mediawiki.org/wiki/Help:SMW_extensions
10
![Page 11: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/11.jpg)
Exercise
Write something about yourself:
http://tw.rpi.edu/portal/SummerProgram2009
11
![Page 12: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/12.jpg)
12
#3: Browsing• Methods for browsing the regular wiki
– Similar to browsing a website– Some links specific to the wiki
• “what links here” in the toolbox sidebar
• Methods for browsing the annotated data– Factbox– Property links to property pages– Category links to category pages– Semantic browsing
![Page 13: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/13.jpg)
13
Browsing - Track changes
• Track changes on the whole Wiki– use “Recent changes” in the navigation sidebar
• Track changes on one wiki page– use the “history” tab
• Track changes on pages related to one wiki page– Use the “Related changes” in the toolbox sidebar
• Track semantic changes of triples (an extension)– Example: http://tw.rpi.edu/semhis
![Page 14: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/14.jpg)
14
#4: Using Semantics
![Page 15: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/15.jpg)
For End UsersImproved Semantic Data Generation
• Before– Use RDF syntax
– Use Editor
• After– From structured data
– Use SMW syntax
– Use Form
<?xml version="1.0"?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about="http://www.w3.org/"> <dc:title>World Wide Web Consortium</dc:title> </rdf:Description></rdf:RDF>
![Page 16: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/16.jpg)
For End UsersSmart Data Propagation
• Data can be easily propagated via semantic query, e.g. the project and publications are included from others’ input
• Data can be propagated smartly using wiki-script based inference, e.g. “James A. Hendler” has an alias “Jim Hendler”
![Page 17: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/17.jpg)
For Developers
17
Wiki DB Triple Store Online dataData Layer
Map Data EvaluationPublication
Management
Still many not yet
mentioned…
Wiki Layer
App.Layer
(Semantic) Wiki Scripting
Semantic Template
Semantic Query
(PHP, Javascript) Wiki Extensions
HaloExtension
Parser Function
Concept Modeling: RDF, Relational Modeling, Rules
Semantic Forms
ProjectManagement
Remote SemWiki
Group Info. Management
SMW is a ready-to-use semantic web workbench
![Page 18: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/18.jpg)
For DevelopersSMW Enables Fast Prototyping
• Learning Curve (before)– Web languages: HTML,
CSS– Semantic web languages:
RDF, RDFS, OWL, SPARQL,
– Web tools: web server (apache, tomcat), database (mysql), languages (PHP, Javascript)
– Semantic web tools: editor (protégé, swoop), triple store (sesame), ontology reasoners (pellet, racer), Programming API (jena),
• Learning Curve (after)– Wiki syntax – Semantic wiki syntax and
semantic form/template syntax
– Web tools hidden by Wiki– Simplified SW tools via
light-weight Wiki programming:
• Online authoring• Triple store• Semantic query with
simple RDFS reasoning
![Page 19: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/19.jpg)
For DevelopersSMW is a Web-based modeling tool
19
PersonNameRoleAliasAffiliation
ProjectNameMember
IssueIDProjectAssignee
Jim Hendler ProfessorhasRole
Person
rdfs:subClassOf
Alice
John
hasUncleAlice
BobJohn
isParentOf
isBrotherOf
RDF Modeling
Relational Modeling
Rule Modeling
![Page 20: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/20.jpg)
20
#5: Example Apps
![Page 21: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/21.jpg)
Publication Repository
21http://tw.rpi.edu/wiki/Publication
DBLP
bibtex
wiki markup
![Page 22: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/22.jpg)
An Ontology Editor
22
Template based OWL meta modeling with form support Controlled natural language rendering (Rabbit, ACE, Yayan) Limited rule inference to enhance the native RDFS inference
http://tw.rpi.edu/proj/cnl
![Page 23: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/23.jpg)
RPI Campus Map
23
![Page 24: A Short Tutorial to Semantic Media Wiki (SMW)blog.memect.cn/wp-content/uploads/2016/12/2009-07-21_smwtraini… · A Short Tutorial to Semantic Media Wiki (SMW) [[date:: ... Javascript)](https://reader030.fdocuments.us/reader030/viewer/2022040302/5ead5092c0f51c715878bd2a/html5/thumbnails/24.jpg)
#6 Additional Resources• SMW site:
http://semantic-mediawiki.org
• A 1.5 hour video tutorial: http://videolectures.net/eswc08_vrandecic_sw/
• SMW+ User Forum:http://smwforum.ontoprise.com/
• Tetherless World Work on SMWhttp://tw.rpi.edu/wiki/Semantic_Portal_Wiki
24