Manual:Managing data in MediaWiki

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎français • ‎português

MediaWiki was designed to manage mostly textual information and it does this very well. However, the only way of structuring content is by Namespaces (this article is in the Namespace "Manual"), Subpages or Categories (this article was put into the "Category:MediaWiki Introduction ").

If you want to manage structured data in MediaWiki, e.g. a date or a number, several different approches exist, handled by dedicated extensions. The differences and similarities of the most common ones are shown in the following table:

Feature SemanticMediaWiki Logo.png
Semantic MediaWiki
Wikibase logo.svg
Wikibase
Cargo logo.png
Cargo
Main usecase Managing data within a MediaWiki installation, based on Semantic Web standards. Powering Wikidata Managing data within a MediaWiki installation.
Approach Data (properties) are annotated within regular wikitext or by templates. With the datatype "reference", properties can be used to describe items using statements.[1] Properties are defined and used to describe Items using statements. Data is stored in database tables, with each table corresponding to a template.
Available since 2005 2012 2015
Active installations 1000s[2] 10s[3][4] 100s[5]
Community 74 developers, 44 watchers[6] 146 developers, 58 watchers[7] 51 developers, 15 watchers[8]
Storage MediaWiki database, Elasticsearch, 5 different SPARQL stores[9] MediaWiki database, Elasticsearch, SPARQL store (Blazegraph for wikidata.org) MediaWiki database (or a separate database[10])
Property definition By typing wikitext. Properties can be invented freely. They will be of datatype page by default and can be defined later. Properties have to be defined before usage. Instead of using properties, data tables are defined with a predetermined (but reconfigurable) set of fields per table.
Value declaration Inline ([[MyProperty::MyValue]]) or with templates. Form-based data entry with Page Forms. Using forms. With parser functions in templates. Form-based data entry with Page Forms.
Predefined data types 18[11] 17[12] 18
Property management type definitions, constraint schemas, ontology import custom, or import of Wikidata ontology Instead of using properties, data tables are defined with a predetermined (but reconfigurable) set of fields per table.
Inline queries yes, with parser functions no (external SPARQL queries) yes, with parser functions
External querying yes, with either an API or SPARQL querying (available through special extensions such as RDFIO and LinkedWiki) yes, with SPARQL Query service yes, with an API
Result formats[13] ~ 63[14] 0, but visualisations via Query Service or other external tools, and on wiki data access via LUA ~ 25[15]
Development Github Gerrit Gerrit
Complementary extensions 28[16] to 51[17], e. g. Semantic Result Formats , Semantic Bundle , Semantic Scribunto ~7[18], e. g. Wikibase Client , WikibaseLexeme , Query Service 2 (Page Forms, Page Schemas). Cargo provides some or all of the functionality of Semantic MediaWiki, Semantic Result Formats, Maps, Semantic Drilldown, Semantic Compound Queries, Semantic Internal Objects and Semantic Scribunto.[19]
Complementary tools & services ? ? ?
Implementable on WMF wikis ? ? ?

References[edit]

See also[edit]