งานนำเสนอกำลังจะดาวน์โหลด โปรดรอ

งานนำเสนอกำลังจะดาวน์โหลด โปรดรอ

Hands-On: Semantic MediaWiki

งานนำเสนอที่คล้ายกัน


งานนำเสนอเรื่อง: "Hands-On: Semantic MediaWiki"— ใบสำเนางานนำเสนอ:

1 Hands-On: Semantic MediaWiki
ดร.มารุต บูรณรัช 269618: หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย ภาควิชาวิทยาการคอมพิวเตอร์และเทคโนโลยีสารสนเทศ คณะวิทยาศาสตร์ มหาวิทยาลัยนเรศวร Slides adapted from: Peter Haase and Denny Vrandečić, AIFB, Universität Karlsruhe (TH) Asian School for the Semantic Web ASSW2008, Bangkok, Thailand – December 2008 AIFB Handson SMW

2 Activities Create data and simple schemas in Semantic MediaWiki
Create instance data using Semantic MediaWiki Export data in RDF/OWL Retrieve instance data using Semantic Search function Retrieve instance data using SPARQL Queries

3 About Semantic MediaWiki
Wikis are websites that anyone can edit MediaWiki Popular Wiki software Used by Wikipedia Easy to use Open source Semantic MediaWiki extends MediaWiki by adding: Typed links Property – Value Inline queries (Semantic Search) Browsing the relationships

4 Wikipedia article about Thailand
Thailand is an independent country that lies in the heart of Southeast Asia. It is bordered to the north by Burma and Laos, to the east by Laos and Cambodia, to the south by the Gulf of Thailand and Malaysia, and to the west by the Andaman Sea and the southern extremity of Burma. Its maritime boundaries include Vietnam in the Gulf of Thailand to the southeast and Indonesia and India in the Andaman Sea to the southwest. Category: Southeast Asian Countries

5 Semantic Relationships
Thailand: located in: Southeast Asia Thailand: north bordered: Burma Thailand: north bordered: Laos Thailand: east bordered: Laos Thailand: east bordered: Cambodia Thailand: south bordered: Gulf of Thailand Thailand: south bordered: Malaysia

6 Typed Links Allow computer program to understand the relationship between two concepts Southeast Asia located in north bordered Laos Southeast Asia Thailand

7 Typed Links (2) MediaWiki
Thailand ... lies in the heart of [[Southeast Asia]]. It is bordered to the north ... [[Laos]] Semantic MediaWiki Thailand ... lies in the heart of [[located in :: Southeast Asia]]. It is bordered to the north ... [[ north bordered :: Laos]]

8 Get Started Go to http://lst.nectec.or.th/smwiki/
Create your account/ password your real name or nickname Start Login Create your account

9 Edit the Wiki Click here to go to your personal page
Click here to edit your page

10 Edit the Wiki (2) Try to add/ edit text Save/ Preview/ Cancel change

11 Overview of MediaWiki Markup
'''three apostrophes''' will make text bold ''two apostrophes''' will make text italic [[Text in double square brackets]] will be links to the page named as the text in the brackets [[Link target|link text]] will display a link that looks like link text but links to link target The wiki is case sensitve – but not on the first letter of a link The wiki is Unicode

12 Overview of Semantic MediaWiki Markup
To add a page P to category C type [[Category:C]] on page P To make a typed link of type R from page P1 to page P2 type [[R::P2]] on page P1 To state the value V of an attribute A on page P type [[A::V]] on page P Example:

13 Data values and types Attributes like [[birthdate::February ]] or [[population::3,635,389]] must know the type of the value This is done by adding [[has type::T]] on the page of the attribute Available, predefined types: Annotation URI Date Enumeration Float Geographic coordinate Integer Page String Temperature Text URL

14 กรุณาใส่ข้อมูลเกี่ยวกับตัวท่านเอง
เขียนข้อมูลเล่าประวัติของตัวท่านเอง เช่น ชื่อ-สกุล, จังหวัดที่เกิด, วันเกิด,อายุ, สถานที่ทำงาน, จังหวัดที่ทำงาน, สถานศึกษาที่เรียนจบมา, ที่กำลังศึกษา, อาหารที่ชอบ, งานอดิเรก เป็นต้น… คลิก “Save” หรือ “Preview” เพื่อดูข้อมูลเชิงความหมาย (semantic-based knowledge) เกี่ยวกับตัวท่านเอง

15 Add your information (2)
Facts about yourself generated by Semantic MediaWiki Export this information in RDF/OWL format

16 Semantic Search Go to “Special Pages” (under “Toolbox”) => “Semantic Search” Enter a query: Conditions on a category: [[Category:X]] Conditions on a property: [[R::X]] Property conditions can be ranges, [[R::>X]], [[R::<X]] Property conditions: any value [[R::+]]

17 Semantic Search (2) Query Examples:
[[population::>1,000,000]] anything with a population of over a Million [[located in::Korea]] anything that is located in Korea [[affiliation::+]] anything that has any stated affiliation [[Category:Tutor]] all tutors [[Category:Tutor||Student]] all tutors and students (logical or) [[Category:Tutor]] [[Category:Student]] everyone who is both [[Category:Student]] [[affiliation::*]] all students and their affiliations

18 Some Properties เกิดจังหวัด เกิดวัน เกิดวันที่ เกิดเดือน เกิดปี อายุ
เรียนที่ จบจาก อาชีพ ที่ทำงาน ทำงานจังหวัด ชอบอาหาร งานอดิเรก

19 SPARQL Example # Query RDF data from
# “ # ใครเกิดที่จังหวัดเพชรบุรีบ้าง ? PREFIX smwiki: < PREFIX smwiki_prop: < PREFIX rdfs: < SELECT ?z WHERE { ?x smwiki_prop:เกิดจังหวัด smwiki:เพชรบุรี. ?x rdfs:label ?z }


ดาวน์โหลด ppt Hands-On: Semantic MediaWiki

งานนำเสนอที่คล้ายกัน


Ads by Google