Help:RDFa

From Semantic Portal Wiki

Jump to: navigation, search
Infobox (MediaWiki Extension) edit with form

Contents

Overview

While Semantic MediaWiki(SMW) extension help users to attach RDF data to each page via its ExportRDF special page, this extension aims at embed RDF data within the same wiki page using RDFa.

The RDFa data on a wiki page are originally from the semantic data generated by SMW, and this extension allows users to

  1. duplicate the RDF triples (generated by SMW) on the wiki page via RDFa and avoid accessing the ExportRDF special page.
  2. add additional RDFa annotations in the wiki page to meet fit RDFa applications (e.g. Yahoo SearchMonkey requires a fixed set of properties in RDFa annotation).


Installation

Core Installation

Requirements
  • MediaWiki
  • Semantic MediaWiki Extension


Optional Installation

add "XHTML RDFa" doctype declaration

It is desirable to use the following as the first line of wiki page. Although MediaWiki has provided two global variables $wgDocType and $wgDTD to support such configuration, not all MediaWiki skins support this feature, including Monobook skin. So you can take either of the following approach:

  • set $wgDocType and $wgDTD in LocalSettings.php
  • if the above approach does not work, go to MW-INSTALL-PATH/skin/YOUR-SKIN.php and manually update that file by changing the first line of HTML output using the following line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
Facts about RDFaRDF feed
Dcterms:descriptionenrich wiki page with RDFa annotation extracted (or converted) from Semantic MediaWiki triples.
Dcterms:modified2010-3-11
Foaf:homepagehttp://www.mediawiki.org/wiki/Extension:RDFa  +
Foaf:nameRDFa
Skos:altLabelRDFa  +
Personal tools
Semantic Web Community
Tetherless World constellation
maintenance