[TYPO3-core] RFC Feature #16395: Add basic support for RDFa in core (semantic web)

Jochen Rau jochen.rau at typoplanet.de
Mon Nov 15 15:41:06 CET 2010


This is an SVN patch request.

Type: New feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=16395

Branches:
trunk

Problem:
A first but important step towards the vision of Semantic Web aka Web 3.0 is to add RDFa (embedded RDF triples) to the FE output. By now it is very uncomfortable to make TYPO3 sites RDFa aware.

Solution:
To enable this important feature we have

1. to add a new DOCTYPE to the already existing selection:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

2. to add xml namespaces (xmlns) preferably to head tag.

I propose to be able to say in TS setup

config.doctype = xhtml+rdfa
config.namespaces {
    dc = http://purl.org/dc/elements/1.1/
    foaf = http://xmlns.com/foaf/0.1/
    sioc = http://rdfs.org/sioc/ns#
}

to get

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:sioc="http://rdfs.org/sioc/ns#"
  xml:lang="en" lang="en">

The patch attached to the bugtracker implements this feature. It does not add any RDFa to the content but enables an Extension to do so. 

Regards
Jochen


More information about the TYPO3-team-core mailing list