AIFB
Semantic mediawiki



            Some slide taken
            from Danny Drandevic
Semantic MediaWiki
     Extension of MediaWiki
        Popular Wiki engine
        Powers Wikipedia


     Extends Med...
An example RDF Schema
Annotation of WWW resources and semantic links
             domain                range
 Writer     ...
Concepts
                                            ᆰ
                                            QuickTime e un
        ...
Instance <-> Page                                                         ᆰ
                                              ...
Class <-> Category                                                        QuickTimeᆰ e un
                                ...
Relation <-> Property                                                      QuickTimeᆰ e un
                               ...
Instance <-> Page                                                           QuickTimeᆰ e un
                              ...
Instance


 Blue links
  mean there is
  a page about
  it
 Red link
  means there
  is no page
  about it
             ...
Class <-> Category                                                                               QuickTimeᆰ e un
         ...
Class <-> Category                                                                               QuickTimeᆰ e un
         ...
Class <-> Category                                                                               QuickTimeᆰ e un
         ...
Categories


 Informal description
    Can be discussed
    Can be edited




                         13
Relation <-> Property                                                                                 QuickTimeᆰ e un
    ...
Relation <-> Property                                                             ᆰ
                                      ...
Data values and types
 Attributes like [[birthdate::February 27 1978]] or
  [[population::3,635,389]] must know the type ...
Special:Categories




                       QuickTimeᆰ e un
                 decompressore TIFF (LZW)
      sono necessa...
Special:Properties




                          QuickTimeᆰ e un
                    decompressore TIFF (LZW)
         son...
Special:Ask




                          ᆰ
                          QuickTime e un
                    decompressore TIF...
Query examples - Category
For example, the query:

[[Category:Teacher]]

is a query for all pages within the category Teac...
Query examples - Subcategories
For example, the query:

[[Category:Person]]

Will find all pages in the categories Teacher...
Query examples - combining queries (AND)

For example, the query:


[[Category:Person]] [[has nationality::Italy]]

Will f...
Query examples - combining queries (OR)
For example, the query:

[[Category:Organizer || Teacher]]
Will find all items tha...
Query examples - Properties
For example, the query:


[[has nationality::Italy]]

Will find all occurencies that have the ...
Query examples - conditions on attributes
For example, the query:

[[Category:City]] [[Has population>1,000,000]]

Will fi...
All cities having a has population property

[[Category:City]] [[has population::+]]




                                 ...
All cities having and their population

[[Category:City]] [[has population::*]]




                                      ...
All cities with more than 1,000,000 people
 and their population
[[Category:City]] [[has population::>1,000,000]]
  [[has ...
Embedding queries into pages

<ask>…</ask>

                             ᆰ
                             QuickTime e un
   ...
Formatting and sorting

See
http://ontoworld.org/wiki/Help:Inline_queries




                                            30
Social aspects
 You are free to define categories and properties, but…

    How to decide which properties and categorie...
Querying and social aspects
 Querying can only be done on aligned vocabularies
    If half of the people use “affiliatio...
Exporting the data
   Every page can export its knowledge as RDF




                                          33
Go to the wiki!
 If you are e.g. Bjorn Hassler, and your user page is Bjorn:
     Copy the content of your User:Bjorn pa...
Upcoming SlideShare
Loading in …5
×

Practical Introduction to the Semantic Mediawiki

3,813
-1

Published on

Published in: Technology, Art & Photos
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,813
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
117
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Practical Introduction to the Semantic Mediawiki

  1. 1. AIFB Semantic mediawiki Some slide taken from Danny Drandevic
  2. 2. Semantic MediaWiki  Extension of MediaWiki  Popular Wiki engine  Powers Wikipedia  Extends MediaWiki by enabling…  Typed links  Property – Value  Inline queries  New ways to explore the content  Open source and well documented 2
  3. 3. An example RDF Schema Annotation of WWW resources and semantic links domain range Writer hasWritten Book subClassOf FamousWriter type Schema(RDFS) Data(RDF) type hasWritten ../ISBN00010475 /twain/mark 3
  4. 4. Concepts ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine.  INSTANCE <=> PAGE  CLASS <=> CATEGORY  RELATION <=> PROPERTY 4
  5. 5. Instance <-> Page ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 5
  6. 6. Class <-> Category QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 6
  7. 7. Relation <-> Property QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 7
  8. 8. Instance <-> Page QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 8
  9. 9. Instance  Blue links mean there is a page about it  Red link means there is no page about it 9
  10. 10. Class <-> Category QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un There are pages decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. describing categories 10
  11. 11. Class <-> Category QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. Subclass (subcategory) of 11
  12. 12. Class <-> Category QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. Extensional description List of all instances But: only direct ones 12
  13. 13. Categories  Informal description  Can be discussed  Can be edited 13
  14. 14. Relation <-> Property QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. There are pages describing ᆰ QuickTime e un decompressore TIFF (LZW) properties sono necessari per visualizzare quest'immagine. 14
  15. 15. Relation <-> Property ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. Datatype definition 15
  16. 16. Data values and types  Attributes like [[birthdate::February 27 1978]] 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: o Annotation URI Integer Page o Date String o Email Temperature o Enumeration Text URL o Float o Geographic coordinate 16
  17. 17. Special:Categories QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 17
  18. 18. Special:Properties QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 18
  19. 19. Special:Ask ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 19
  20. 20. Query examples - Category For example, the query: [[Category:Teacher]] is a query for all pages within the category Teacher, i.e. for all teachers. If you enter this in Special:Ask and click quot;Find resultsquot;, SMW executes the query and displays results as a simple list of all requested pages. If there are many results, they can be browsed via the navigations links at the top and 20 bottom of the query results
  21. 21. Query examples - Subcategories For example, the query: [[Category:Person]] Will find all pages in the categories Teachers, Students and Organizer if these categories are subcategories of Person 21
  22. 22. Query examples - combining queries (AND) For example, the query: [[Category:Person]] [[has nationality::Italy]] Will find all items in category Person that have the property of being italian. (AND) 22
  23. 23. Query examples - combining queries (OR) For example, the query: [[Category:Organizer || Teacher]] Will find all items that are category Organizer OR in category Teacher (Set Union). [[Category:Organizer]] || [[has nationality::Italy]] Will find all items that are category Person PLUS (Union) all those that have the property of being italian. (OR) 23
  24. 24. Query examples - Properties For example, the query: [[has nationality::Italy]] Will find all occurencies that have the specified property. 24
  25. 25. Query examples - conditions on attributes For example, the query: [[Category:City]] [[Has population>1,000,000]] Will find all pages in the category City, having more than one million inhabitants. ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 25
  26. 26. All cities having a has population property [[Category:City]] [[has population::+]] QuickTimeᆰ e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 26
  27. 27. All cities having and their population [[Category:City]] [[has population::*]] ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 27
  28. 28. All cities with more than 1,000,000 people and their population [[Category:City]] [[has population::>1,000,000]] [[has population::*]] ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 28
  29. 29. Embedding queries into pages <ask>…</ask> ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. ᆰ QuickTime e un decompressore TIFF (LZW) sono necessari per visualizzare quest'immagine. 29
  30. 30. Formatting and sorting See http://ontoworld.org/wiki/Help:Inline_queries 30
  31. 31. Social aspects  You are free to define categories and properties, but…  How to decide which properties and categories are important?  How to define the properties or categories?  How to ensure high quality data? What does it mean?  How to control the wiki knowledge base and its growth? 31
  32. 32. Querying and social aspects  Querying can only be done on aligned vocabularies  If half of the people use “affiliation” and the other half “works for” you cannot query the knowledge easily  Inside SMW, information integration usually happens with social tools, not with technology  Gardening tools can help with aligning vocabularies, but not replace them  Tools that allow you to rename a property throughout the wiki  Or to join two different names 32
  33. 33. Exporting the data  Every page can export its knowledge as RDF 33
  34. 34. Go to the wiki!  If you are e.g. Bjorn Hassler, and your user page is Bjorn:  Copy the content of your User:Bjorn page into a new page called Bjorn Hassler  Add to it the right categories (e.g. Man, Teacher)  Add to it the right properties and values (e.g. Has nationality, Has e- mail)  Replace the content of your old User: page User:Bjorn with a link to your new page [[Bjorn Hassler]]  Go to the Special:Ask page and play with queries  Discuss in group and propose new Categories and Properties 34
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×