{"id":545,"date":"2016-03-18T20:17:46","date_gmt":"2016-03-18T19:17:46","guid":{"rendered":"https:\/\/www.dereckson.be\/blog\/?p=545"},"modified":"2017-02-06T12:37:24","modified_gmt":"2017-02-06T11:37:24","slug":"mediawiki-now-accepts-out-of-the-box-rdfa-and-microdata-semantic-markup","status":"publish","type":"post","link":"https:\/\/www.dereckson.be\/blog\/2016\/03\/18\/mediawiki-now-accepts-out-of-the-box-rdfa-and-microdata-semantic-markup\/","title":{"rendered":"MediaWiki now accepts out of the box RDFa and Microdata semantic markup"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-563\" src=\"https:\/\/www.dereckson.be\/blog\/wp-content\/uploads\/2016\/03\/SemanticWeb.gif\" alt=\"Semantic web\" width=\"277\" height=\"121\" \/><\/p>\n<p>Since MediaWiki 1.16, the software has supported \u2014 as an option \u2014 RDFa and Microdata HTML semantic attributes.<\/p>\n<p><a href=\"https:\/\/phabricator.wikimedia.org\/rMWe789f51f1183d57999926b80c726338d8611e2f1\">This commit<\/a>,\u00a0integrated to the next\u00a0release on MediaWiki, 1.27, will embrace more the semantic Web making these attributes always available.<\/p>\n<p>If you wish to use it today, this is already available <a href=\"https:\/\/www.mediawiki.org\/wiki\/Download_from_Git\">in our Git repository<\/a>.<\/p>\n<p>This also simplify slightly the cyclomatic complexity of our parser sanitizer code.<\/p>\n<p>Microdata support will so be available on Wikipedia Thursday, 24 March 2016 and on other projects Thursday, 23 March 2016.<\/p>\n<p><strong>If you already use RDFa today on MediaWiki<\/strong><\/p>\n<p>First, we would be <a href=\"https:\/\/phabricator.wikimedia.org\/T1351\">happy to get feedback<\/a>,\u00a0as we&#8217;re currently considering an update to RDFa \u00a01.1 and we would like to know who is still in favour to keep RDFa 1.0.<\/p>\n<p>Secondly, there is a small effort of configuration to do: open the source code of your wiki and look the <code>&lt;html&gt;<\/code>\u00a0tag.<\/p>\n<p>Copy\u00a0the content of the\u00a0version attribute: you should see something like like\u00a0<code>&lt;html version=HTML+RDFa 1.0\"&gt;.<\/code><\/p>\n<p>Now, edit InitialiseSettings.php (or your wiki farm configuration) and set the <a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual:$wgHtml5Version\">$wgHtml5Version<\/a> setting. For example here, this would be:<br \/>\n<code>$wgHtml5Version=\"=HTML+RDFa 1.0\";<\/code><\/p>\n<p>For the microdata, there is nothing special to do.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since MediaWiki 1.16, the software has supported \u2014 as an option \u2014 RDFa and Microdata HTML semantic attributes. This commit,\u00a0integrated to the next\u00a0release on MediaWiki, 1.27, will embrace more the semantic Web making these attributes always available. If you wish to use it today, this is already available in our Git repository. This also simplify [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,45,30],"tags":[100,282,280,278],"class_list":["post-545","post","type-post","status-publish","format-standard","hentry","category-dev","category-misc","category-wikimedia","tag-mediawiki","tag-microdata","tag-rdfa","tag-semantic-web"],"_links":{"self":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":10,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/545\/revisions\/585"}],"wp:attachment":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}