D bpedia

801 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
801
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

D bpedia

  1. 1. WikipediaKonstantinos Stampoulis Geraki
  2. 2. Five Pillars            Wikipedia is an online encyclopedia             Wikipedia has a neutral point of view             Wikipedia is free content that anyone can edit and distribute             Wikipedians should interact in a respectful and civil manner             Wikipedia does not have firm rules 
  3. 3. Policy●Wikipedia is not a paper encyclopedia●Wikipedia is not a dictionary●Wikipedia is not a publisher of original thought●Wikipedia is not a soapbox or means of promotion●Wikipedia is not a mirror or a repository of links, images, ormedia files●Wikipedia is not a blog, webspace provider, social networking,or memorial site●Wikipedia is not a directory●Wikipedia is not a manual, guidebook, textbook, or scientificjournal●Wikipedia is not a crystal ball●Wikipedia is not an indiscriminate collection of information●Wikipedia is not censored
  4. 4. Policy●Wikipedia is not a democracy●Wikipedia is not a bureaucracy●Wikipedia is not a battleground●Wikipedia is not an anarchy
  5. 5. Policy●Neutrality●Verifiability●No original research
  6. 6. Policy-Copyright Creative Commons Attribution Sharealike 3.0 GNU Free Documentation License 1.2
  7. 7. MediaWikiMediaWiki is a popular free web-based wikisoftware application.It is developed by, and it runs, all the projects of theWikimedia Foundation, including Wikipedia,Wiktionary, and Wikinews, as well as poweringmany other wiki websites worldwide.It is written in the PHP programming language anduses a backend database.
  8. 8. MediaWiki
  9. 9. MediaWiki
  10. 10. MediaWikiPage content is generated through the use of amarkup language and limited HTML.Examples: Bold  :  BoldItalics : Italics[[Linux]] : link to article "Linux"[http://www.gnu.org/ GNU Project] : External link
  11. 11. System architectureWikipedia currently runs on dedicated clusters of Linuxservers (mainly Ubuntu), with a few OpenSolarismachines for ZFS. As of December 2009, there were300 in Florida and 44 in Amsterdam
  12. 12. Wikimedia Foundation     http://wikimediafoundation.org
  13. 13. Wikimedia Foundation     Imagine a world in which every single human being can freely share in the sum of all knowledge. Thats our commitment.
  14. 14. Wikimedia Foundation       Wikipedia       Wikisource       Wiktionary       Wikiquote       Wikispecies       Wikibooks       Wikinews       Wikiversity       Wikimedia Commons
  15. 15. Wikimedia Foundation Wikimedia Chapters
  16. 16. el.wikipedia.org ΒΙΚΙΠΑΙΔΕΙΑ Η ελεύθερη εγκυκλοπαίδεια
  17. 17. el.wikipedia.org > 55.690 articles > 141.000 pages > 2.490.000 edits
  18. 18. el.wikipedia.org > 70.000 registered users ~ 670 active users = 18 admins
  19. 19. el.wikipedia.orgPage views March 2010= 12.900.000= 430.000 /day= 18.000 /hour= 299 /min= 5 /sec
  20. 20. el.wikipedia.org
  21. 21. el.wikipedia.org ΒΙΚΙΠΑΙΔΕΙΑ Η ελεύθερη εγκυκλοπαίδεια
  22. 22. Questions
  23. 23. Templates
  24. 24. No parameters:{{mybox}}Unnamed parameters:{{mybox| 1 | 2 }}Named parameters:{{mybox| par1 = 1 | par2 = 2 }}
  25. 25. Template code:You gave {{{1}}} and {{{2}}}.Article code:{{mybox| dog | cat }}Article output:You gave dog and cat.
  26. 26. Template code:You gave {{{par1}}} and {{{par2}}}.Article code:{{mybox|par1 = donkey |par2 = mule }}Article output:You gave donkey and mule.
  27. 27. But what about defaults?
  28. 28. Template code:You gave {{{par1|lion}}} and {{{par2|tiger}}}.Article code:{{mybox| par2 = mule }}Article output:You gave lion and mule.
  29. 29. Template code:You gave {{{par1|{{{1}}} }}} and{{{par1|{{{1|lion}}} }}}.Article code:{{mybox| tiger | par2 = mule }}Article output:You gave tiger and mule.
  30. 30. Template code:{| class=”infobox”| First name| {{{par1|}}}|-| Last name| {{{par2|}}}|}Article code:{{mybox| par1 = King | par2 = Kong }}Article output: First name King Last name Kong
  31. 31. Template code:{| class=”infobox”| First name| {{{par1|}}}|-| Last name| {{{par2|}}}|}Article code:{{mybox| par1 = | par2 = Kong }}Article output: First name Last name Kong
  32. 32. {{#if: test string | value if true | value if false }}{{#if: {{{par1|}}} | value if true | value if false }}Remember: When checking infobox parameters, default valueshould always be empty (=false).
  33. 33. Template code:{| class=”infobox”{{#if: {{{par1|}}} |{{!}} First name{{!}} {{{par1}}}}}|-{{#if: {{{par2|}}} |{{!}} Last name{{!}} {{{par2}}}}}|}Article code:{{infobox| par1 = | par2 = Kong }}Article output: Last name Kong
  34. 34. Nested functions:{{#if: {{{par1|}}} | {{#if: {{{par2|}}} | true forpar2 | false for par2 }} | false for par1 }}
  35. 35. Article code:{{Infobox person| name =| birth_date =| birth_place =| death_date =| death_place =| nationality =| other_names =| known_for =| occupation =}}
  36. 36. Template code:{| class=”infobox”{{#if: {{{name|}}} |{{!}} Name{{!}} {{{name}}}}} Plain syntax:|-{{#if: {{{birth_date|}}} | Flexible but{{!}} Birth date{{!}} {{{birth_date}}} complex and}}|- difficult to maintain{{#if: {{{birth_place|}}} |{{!}} Birth place{{!}} {{{birth_place}}}}}...|}
  37. 37. META-TEMPLATES
  38. 38. Article code:{{Infobox person| name =| birth_date =| birth_place =| death_date =| death_place =| nationality =| other_names =| known_for =| occupation =}}
  39. 39. Template code:{{Infobox|label1 = Name|data1 = {{{name}}}|label2 = Birth date|data2 = {{{birth_date|}}}|label3 = Birth place|data3 = {{{birth_place|}}}|label4 = Death date|data4 = {{{birth_date|}}}|label5 = Death place|data5 = {{{birth_place|}}}|label6 = Nationality|data6 = {{{nationality|}}}|label7 = Other names|data7 = {{{other_names|}}}|label8 = Occupation|data8 = {{{occupation|}}}}}
  40. 40. Template code:{{Infobox|label1 = Name|data1 = {{{name}}} ← Obligatory parameter|label2 = Birth date|data2 = {{{birth_date|}}} ← Optional parameter|label3 = Birth place|data3 = {{{birth_place|}}}|label4 = Death date|data4 = {{{birth_date|}}}|label5 = Death place|data5 = {{{birth_place|}}}|label6 = Nationality|data6 = {{{nationality|}}}|label7 = Other names|data7 = {{{other_names|}}}|label8 = Occupation|data8 = {{{occupation|}}}}}
  41. 41. Template code: {| class=”infobox”{{Infobox {{#if: {{{name|}}} ||label1 = Name {{!}} Name|data1 = {{{name}}} {{!}} {{{name}}}|label2 = Birth date }}|data2 = {{{birth_date|}}}|label3 = Birth place |-|data3 = {{{birth_place|}}} {{#if: {{{birth_date|}}} ||label4 = Death date {{!}} Birth date|data4 = {{{birth_date|}}} {{!}} {{{birth_date}}}|label5 = Death place }}|data5 = {{{birth_place|}}} |-|label6 = Nationality {{#if: {{{birth_place|}}} ||data6 = {{{nationality|}}} {{!}} Birth place|label7 = Other names {{!}} {{{birth_place}}}|data7 = {{{other_names|}}} }}|label8 = Occupation ...|data8 = {{{occupation|}}} |}}}
  42. 42. Complex code can be used if needed:| label6 = Μάζα| data6 = {{#if:{{{mass|}}}|{{{mass}}} kg}}
  43. 43. Important parameters of meta-template “Infobox”:● name - the name of the infobox – important for many features● title - title that appears at the top of our box● image – image to show on the top of our box● headerD● labelD● dataDText to use in corresponding row.Headers, labels and data items with the same D-value aremutually exclusive; if all are defined, only header will bedisplayed.If data is not defined, label is not displayed.
  44. 44. Questions

×