Semantic MediaWiki &
                        Semantic Forms
                                        Semantic Web New York ...
Sergey Chernyshev

  Director, Web Systems and Applications at truTV
  12+ years in web development
  MediaWiki Widgets, P...
Audience survey

Please raise a hand if:
   Know what Wikis are?
   Installed Wiki software?
   Contributed to Wikipedia
 ...
TechPresentations.org
   Presentations are cutting edge (well sooner then books)
   Tracks presentations, presenters, comp...
MediaWiki
Most popular Wiki software developed by WikiMedia foundation
  Open Source, GNU General Public License (GPL)
  P...
Semantic MediaWiki extension

             Extension to MediaWiki software
           http://www.semantic-mediawiki.org/

...
Adding annotations
Regular page (http://www.example.com/Man-Month)
   Title: '''Mythical Man-Month'''
   ISBN: 0201835959
...
Semantic templates

Within the page
    {{Book
       |Mythical Man-Month
       |ISBN=0201835959
    }}

Template:Book
  ...
Properties
/Property:<property name> - defines the property (free-text
description, data type and how values are displayed...
Semantic queries
   /Special:Ask
   inline queries

Custom syntax (not SPARQL), includes formatting: lists, tables,
intera...
Special properties, RDF Export

Special properties
   Allows value, Has type, Provides service

Ontologies and inferencing...
Demo

 Page with factbox
 Semantic template 'Conference'
 Semantic queries
 Inline queries, different formsts (timelines, ...
Resources

  http://www.mediawiki.org/
  http://www.semantic-mediawiki.org/
  http://www.mediawiki.org/wiki/Extension:Sema...
Yaron Koren

  Web developer
  Started working with MediaWiki and
  Semantic MediaWiki in summer of 2006
Yaron's philosophy of data

   All semantic data should be structured
   All structured data should be semantic
(where quo...
In a wiki, this translates to...

  All semantic markup should be contained in
  templates
  All templates with data shoul...
Thankfully, there's an under-appreciated
advantage to using semantic representation


  Because all data and meta-data are...
The semantic MediaWiki extensions

  Semantic MediaWiki - Markus Krötzsch, Denny
  Vrandečić, Max Völkel - September 2005
...
Semantic Forms
 Allows for the creation of forms for adding and
 editing pages that use templates
 Forms are defined using...
Semantic Forms

  Also provides quot;helper formsquot; for creating
  forms, templates and properties
Semantic Forms

  Used in around 50-80 (educated guess)
  wikis around the world at the moment
Semantic Layers, Semantic Google Maps


 Display geographical semantic data using
 OpenLayers (an open-source API) and Goo...
Semantic Drilldown

  Shows a drilldown interface for viewing the
  wiki's data
  Filters for the drilldown are defined ah...
Semantic Calendar

  Displays semantic date information in a
  calendar
Data Transfer

  Allows for XML export of page data; may
  eventually allow for XML import as well
  Somewhat epitomizes t...
Referata

  Possibly world's first... okay, possibly world's
  second semantic wiki farm
  Located at referata.com; lets u...
What now?
Install and Learn more
   http://www.mediawiki.org/
   http://www.semantic-mediawiki.org/
   http://www.mediawik...
If we'll have more time / additional slides
Books
Wiki Way (2001)                    MediaWiki Administrator's
by Bo Leuf and Ward   Cunningham   Tutorial Guide (2007...
MediaWiki syntax
Simple markup syntax that defined both structure and look-n-feel
   = Header 1 =, == Header 2 == ...
   [...
MediaWiki syntax (logic)
Parser functions
   {{lc:SoMe StRiNg}}
   {{#if:...|...|...}}
   {{#widget:Feed
   |feedurl=http:...
Upcoming SlideShare
Loading in...5
×

Semantic Media Wiki & Semantic Forms

18,611

Published on

Presentation about Semantic MediaWiki and Semantic Forms given by Sergey Chernyshev and Yaron Koren at "Semantic Wikis" (March 2008 NY SemWeb Meetup) on March 13, 2008

Published in: Technology
0 Comments
8 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
18,611
On Slideshare
0
From Embeds
0
Number of Embeds
93
Actions
Shares
0
Downloads
205
Comments
0
Likes
8
Embeds 0
No embeds

No notes for slide

Transcript of "Semantic Media Wiki & Semantic Forms"

  1. 1. Semantic MediaWiki & Semantic Forms Semantic Web New York meetup March 13, 2008 Sergey Chernyshev Yaron Koren TechPresentations.org Semantic Forms This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License
  2. 2. Sergey Chernyshev Director, Web Systems and Applications at truTV 12+ years in web development MediaWiki Widgets, Page Object Model (POM) http://www.TechPresentations.org
  3. 3. Audience survey Please raise a hand if: Know what Wikis are? Installed Wiki software? Contributed to Wikipedia (or other public Wiki)? Familiar with Semantic Web idea?
  4. 4. TechPresentations.org Presentations are cutting edge (well sooner then books) Tracks presentations, presenters, companies, topics, conferences, conference series, calls for papers and more Feeds: Upcoming conferences, Open calls for papers, Topic presentations (soon), Topic conferences (soon) and etc. How did I get to use wiki: Started as a blog Needed more quot;persistentquot; project, needed collaboration but didn't know the full scope (I still don't) Had some experience with other wiki software (TWiki, WackoWiki, XPoint wiki) for collaboration, agile project documentation and etc. Installed MediaWiki
  5. 5. MediaWiki Most popular Wiki software developed by WikiMedia foundation Open Source, GNU General Public License (GPL) PHP + MySQL Massively Multilingual, easily extensible (APIs) Runs Wikipedia, Wikia, WikiTravel, AboutUs and many more http://s23.org/wikistats/ (largest, >11K articles) 31K public sites, many internal (Novell, Intel ...) 26M articles (6M images, total 111M pages) 15M users (45K admins) 586M edits ... long tail must be huge
  6. 6. Semantic MediaWiki extension Extension to MediaWiki software http://www.semantic-mediawiki.org/ Lead by Markus Krötzsch and Denny Vrandecic of Institut AIFB of Universität Karlsruhe, Germany Sponsors: European Union DocCheck GmbH HP Labs Palo Alto Ontoprise GmbH (Halo project funded by Vulcan Inc.)
  7. 7. Adding annotations Regular page (http://www.example.com/Man-Month) Title: '''Mythical Man-Month''' ISBN: 0201835959 Page with semantic markup Title: '''[[Has Title::Mythical Man-Month]]''' ISBN: [[Has ISBN::0201835959]] Creates two quot;triplesquot;: (Man-Month, Has Title, quot;Mythical Man-Monthquot;) (Man-Month, Has ISBN, quot;0201835959quot;)
  8. 8. Semantic templates Within the page {{Book |Mythical Man-Month |ISBN=0201835959 }} Template:Book Title: '''[[Has Title::{{{1}}}]]''' ISBN: [[Has ISBN::{{{ISBN}}}]])
  9. 9. Properties /Property:<property name> - defines the property (free-text description, data type and how values are displayed). [[has type::Type:Page]] Types String, Number, Page Date, URL, Email Geo, Temperature Custom units [[Corresponds to::1 km, kilometer, kilometers]] [[Corresponds to::1000 m, meter, meters]] [[Corresponds to::0.621371192 mile, miles]] [[display units::km,miles]]
  10. 10. Semantic queries /Special:Ask inline queries Custom syntax (not SPARQL), includes formatting: lists, tables, interactive timelines, Maps (using Semantic Layers extension), custom styles (using templates). {{#ask: [[Category:Conference]] [[Start Date::+]] |? Start Date |? End Date |? Location |format = table }}
  11. 11. Special properties, RDF Export Special properties Allows value, Has type, Provides service Ontologies and inferencing Imported from (external vocabularies, e.g. foaf:homepage) Equivalent URI (owl:sameAs) Redirects, Subproperty Of RDF Export /Special:ExportRDF/<Page_Name> SMW_dumpRDF.php SMW_pingSemWeb.php
  12. 12. Demo Page with factbox Semantic template 'Conference' Semantic queries Inline queries, different formsts (timelines, lists, tables, custom) Semantic browsing RDF Export
  13. 13. Resources http://www.mediawiki.org/ http://www.semantic-mediawiki.org/ http://www.mediawiki.org/wiki/Extension:SemanticMediaWiki semediawiki-user@lists.sourceforge.net semediawiki-devel@lists.sourceforge.net SVN repository https://bugzilla.wikimedia.org/
  14. 14. Yaron Koren Web developer Started working with MediaWiki and Semantic MediaWiki in summer of 2006
  15. 15. Yaron's philosophy of data All semantic data should be structured All structured data should be semantic (where quot;semanticquot; just means quot;queriablequot; or quot;retrievablequot;) All details of data storage should be hidden from regular users
  16. 16. In a wiki, this translates to... All semantic markup should be contained in templates All templates with data should ideally use semantic markup for that data Editing of pages that use templates should be done through forms Navigating through the data should be possible without any knowledge of the semantic relationships
  17. 17. Thankfully, there's an under-appreciated advantage to using semantic representation Because all data and meta-data are stored in the same place, it's very easy to create generic, one-size-fits-all solutions, that work regardless of one's data structure
  18. 18. The semantic MediaWiki extensions Semantic MediaWiki - Markus Krötzsch, Denny Vrandečić, Max Völkel - September 2005 Semantic Forms - Yaron Koren - May 2007 Semantic Layers - Matt Williamson - September 2007 Semantic Google Maps - Robert Buzink - September 2007 Semantic Drilldown - Yaron Koren - December 2007 Semantic Calendar - Yaron Koren - February 2008 Data Transfer - Yaron Koren - February 2008
  19. 19. Semantic Forms Allows for the creation of forms for adding and editing pages that use templates Forms are defined using a mini-scripting language Forms are created on-the-fly based on existing data, the form definition and the templates that the form outputs
  20. 20. Semantic Forms Also provides quot;helper formsquot; for creating forms, templates and properties
  21. 21. Semantic Forms Used in around 50-80 (educated guess) wikis around the world at the moment
  22. 22. Semantic Layers, Semantic Google Maps Display geographical semantic data using OpenLayers (an open-source API) and Google Maps, respectively
  23. 23. Semantic Drilldown Shows a drilldown interface for viewing the wiki's data Filters for the drilldown are defined ahead of time, and are based on semantic properties
  24. 24. Semantic Calendar Displays semantic date information in a calendar
  25. 25. Data Transfer Allows for XML export of page data; may eventually allow for XML import as well Somewhat epitomizes the idea of hiding the data structure - even to the outside world, the wiki can appear to be a regular, database- driven website
  26. 26. Referata Possibly world's first... okay, possibly world's second semantic wiki farm Located at referata.com; lets users create wikis at wiki-name .referata.com Basic usage is free; feel free to create your own
  27. 27. What now? Install and Learn more http://www.mediawiki.org/ http://www.semantic-mediawiki.org/ http://www.mediawiki.org/Extension:Semantic_Forms Go contribute to some public (Semantic) Wiki! http://www.swnyc.org/ http://www.referata.com/ http://www.techpresentations.org/ Contact info: Sergey Chernyshev: sergey.chernyshev@gmail.com Yaron Koren: yaron57@gmail.com
  28. 28. If we'll have more time / additional slides
  29. 29. Books Wiki Way (2001) MediaWiki Administrator's by Bo Leuf and Ward Cunningham Tutorial Guide (2007) ISBN: 0-201-71499-X by Mizanur Rahman ISBN: 0-201-71499-X
  30. 30. MediaWiki syntax Simple markup syntax that defined both structure and look-n-feel = Header 1 =, == Header 2 == ... [[Article Name]], [http://swnyc.org/ SW Meetup] '''bold''', ''Italic '' [[Image:Example.jpg]] [[Category:Example]] __NOTOC__, __NOEDITSECTION__ Templates {{Book|Mythical Man-Month|ISBN=0201835959}} Template:Book Title: '''{{{1}}}''' ISBN: [[{{{ISBN}}}]])
  31. 31. MediaWiki syntax (logic) Parser functions {{lc:SoMe StRiNg}} {{#if:...|...|...}} {{#widget:Feed |feedurl=http://techpresentations.com/feed/ |chan=y|num=10|desc=300|date=n|targ=n}} Variables {{CURRENTYEAR}}... {{SITENAME}}, {{PAGENAME}}... {{REVISIONID}}... {{TALKPAGENAME}} ...
  1. A particular slide catching your eye?

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

×