ArticleslgStudy

computer science

Semantic MediaWiki

Semantic MediaWiki is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Semantic MediaWiki rather than just read about it. In short: Semantic MediaWiki (SMW) is an extension to MediaWiki that allows for annotating semantic data within wiki pages, thus turning a wiki that incorporates the extension into a semantic wiki. Data that has been encoded can be used in semantic searches, used for aggregation of pages, displayed in formats like maps, calendars and graphs, and exported to the outside world via formats like RDF and CSV.

Semantic MediaWiki — main illustration
Semantic MediaWiki — illustration

Key takeaways

  • Semantic MediaWiki belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Semantic MediaWiki to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Semantic MediaWiki from memory before moving on to harder problems.

Reference excerpt

Semantic MediaWiki (SMW) is an extension to MediaWiki that allows for annotating semantic data within wiki pages, thus turning a wiki that incorporates the extension into a semantic wiki. Data that has been encoded can be used in semantic searches, used for aggregation of pages, displayed in formats like maps, calendars and graphs, and exported to the outside world via formats like RDF and CSV.

Authors Semantic MediaWiki was initially created by Markus Krötzsch, Denny Vrandečić and Max Völkel, and was first released in 2005. Its development was initially funded by the EU-funded FP6 project SEKT (CORDIS site), and was later supported in part by Institute AIFB of the University of Karlsruhe (later renamed the Karlsruhe Institute of Technology). Currently SMW is maintained by an open-source-community on GitHub with Jeroen De Dauw as one of the lead maintainers.

Basic syntax Every semantic annotation within SMW is a "property" connecting the page on which it resides to some other piece of data, either another page or a data value of some type, using triples of the form "subject, predicate, object". As an example, a page about Germany could have, encoded within it, the fact its capital city is Berlin. On the page "Germany", the syntax would be:

which is semantically equivalent to the statement "Germany" "Has capital" "Berlin". In this example the "Germany" page is the subject, "Has capital" is the predicate, and "Berlin" is the object that the semantic link is pointing to. However, the much more common way of storing data within Semantic MediaWiki is via MediaWiki templates which themselves contain the necessary SMW markup. For this example, the "Germany" page could contain a call to a template called "Country", that looked like this:

The "Country" template would handle storing whatever the value of the parameter "Capital" is, using the property "Has capital". The template would also handle the display of the data. Semantic MediaWiki developers have estimated that 99% of SMW data is stored in this way. Semantic MediaWiki also has its own inline querying tools. For instance, if pages about countries stored additional information like population data, a query could be added to a page that displays a list of all countries with a population greater than 50 million, along with their capital city; and Germany would appear in such a list, with Berlin alongside it.

Usage Semantic MediaWiki is in use on over 1,600 public active wikis around the world, in addition to an unknown number of private wikis. Notable public wikis that use SMW include the Metacafe wiki, Web Platform, SNPedia, SKYbrary, Metavid, Familypedia, OpenEI, the Libreplanet wiki, the Free Software Directory and translatewiki.net. Organizations that use SMW internally include Pfizer, Harvard Pilgrim Health Care, Johnson & Johnson Pharmaceutical Research and Development, the Pacific Northwest National Laboratory, the Metropolitan Museum of Art, NATO, U.S. Department of Defense, and the International Atomic Energy Agency. SMW has notably gained traction in the health care domain for collaboratively creating bio-medical terminologies and ontologies. Examples are LexWiki, which is jointly run by the Mayo Clinic, National Cancer Institute, World Health Organization and Stanford University; and Neuroscience Information Framework's NeuroLex. Semantic MediaWiki used to be supported on the now-defunct wiki farm Referata, by default. Fandom has previously activated Semantic MediaWiki on user request, but has stopped doing so since upgrading to version 1.19 of MediaWiki; Fandom wikis, such as Familypedia, that had started using it are able to continue.

Semantic MediaWiki and Wikidata Some members of the academic community began urging the use of SMW on Wikipedia since it was first proposed. In a 2006 paper, Max Völkel et al. wrote that in spite of Wikipedia's utility, "its contents are barely machine-interpretable. Structural knowledge, e.g. about how concepts are interrelated, can neither be formally stated nor automatically processed. Also the wealth of numerical data is only available as plain text and thus can not be processed by its actual meaning." The Wikimedia community began adding semantic microformat markup to Wikipedia in 2007. In 2010, Wikimedia Foundation Deputy Director Erik Möller stated that Wikimedia was interested in adding semantic capabilities to Wikipedia, but that they were unsure whether Semantic MediaWiki was the right solution, since it was unclear whether it could be used without negatively affecting Wikipedia's performance. In April 2012, the Wikimedia Foundation project Wikidata began, which provides a massive shared database for use in articles of every language in Wikipedia, and other Wikimedia projects. Its content is also freely available to anyone else. Wikidata supplants the potential use of Semantic MediaWiki on Wikipedia; its software uses Wikibase.

Spinoff extensions

A variety of open-source MediaWiki extensions exist that use the data structure provided by Semantic MediaWiki. Among the most notable are:

Page Forms - enables user-created forms for adding and editing pages that use semantic data Semantic Result Formats - provides a large number of display formats for semantic data, including charts, graphs, calendars and mathematical functions Semantic Drilldown - provides a faceted browser interface for viewing the semantic data in a wiki Maps - displays geographic semantic data using various mapping services

Community The official gathering for Semantic MediaWiki developers and users is SMWCon, which has been held twice a year since 2010, in various cities in the United States and Europe. The largest such event, in October 2013 in Berlin, had around 90 attendees. The first virtual SMWCon 2020 attracted 234 attendees.

See also

DBpedia Freebase OntoWiki

References

… excerpt ends here. Continue reading the full article.

Illustrations

Semantic MediaWiki illustration
Semantic MediaWiki: A form to edit a page, using the Semantic Forms extension
A form to edit a page, using the Semantic Forms extension

Worked examples

Example 1 — a first encounter with Semantic MediaWiki

Start with the simplest possible case. Write down what Semantic MediaWiki claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Semantic MediaWiki before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Semantic MediaWiki ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Semantic MediaWiki

In research
Semantic MediaWiki appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Semantic MediaWiki in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Semantic MediaWiki is common in secondary-school and first-year university syllabi. It links to neighbouring topics MediaWiki extensions, Semantic wiki software, so understanding it makes those chapters shorter.
In everyday life
Look for Semantic MediaWiki outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Semantic MediaWiki” →

How to study Semantic MediaWiki in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Semantic MediaWiki means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Semantic MediaWiki out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Semantic MediaWiki in simple terms?

Semantic MediaWiki (SMW) is an extension to MediaWiki that allows for annotating semantic data within wiki pages, thus turning a wiki that incorporates the extension into a semantic wiki. Data that has been encoded can be used in semantic searches, used for aggregation of pages, displayed in format…

Why does Semantic MediaWiki matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Semantic MediaWiki?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Semantic MediaWiki.

Tags

  • MediaWiki extensions
  • Semantic wiki software

Keep exploring