Project

General

Profile

Actions

Feature #24059

closed

Add basic support for RDFa in core (semantic web)

Added by Jochen Rau about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-11-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

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. This is the upcoming new standard and will IMO replace Microformats entirely.

Google, Yahoo, Facebook et al. already support RDFa. To support RDFa will become essential for SEO. 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&quot;>

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


<!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&quot;
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 attached patch implements this feature. It does not add any RDFa to the content but enables an Extension to do so.

Some additional information about RDFa

RDFa primer: http://www.w3.org/TR/xhtml-rdfa-primer/
RDFa examples: http://www.google.com/support/webmasters/bin/answer.py?answer=146898
RDFa syntax: http://www.w3.org/TR/rdfa-syntax/
(issue imported from #M16395)


Files

feature_16395_v1.diff (1.47 KB) feature_16395_v1.diff Administrator Admin, 2010-11-15 15:07
feature_16395_v2.diff (2.46 KB) feature_16395_v2.diff Administrator Admin, 2010-11-16 19:02

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #20862: TYPO3 needs to support the Semantic Web in the core / RDFA / Web 3.0Closed2009-08-11

Actions
Actions #1

Updated by Jochen Rau about 14 years ago

I have added an improved patch (feature_16395_v2.diff). Changes:

1) The value of the config.doctype changed from xhtml+rdfa to xhtml+rdfa_10 to distinguish it from the upcoming XHTML+RDFa 1.1 standard (xhtml+rdfa_11).

2) The lang attribute is added to HTML5 as well (bug in trunk)

3) The namespaces are added to HTML5 as well.

Actions #2

Updated by Jochen Rau about 14 years ago

Committed to trunk r9436

Actions #3

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions

Also available in: Atom PDF