Difference between revisions of "RDFa"

From Creative Commons
Jump to: navigation, search
(Content discovery)
(CC Tools)
Line 30: Line 30:
RDFa is used or supported in the following CC tools:
RDFa is used or supported in the following CC tools:
* '''License Deeds'''<br/>When visiting a license deed (for example, http://creativecommons.org/licenses/by/3.0/), the deed loads Javascript which looks at the [http://en.wikipedia.org/wiki/HTTP_REFERER referrer] for RDFa.  If it finds attribution or network membership metadata, this is displayed on the deed.
* [[MozCC]] (see [[What's New in MozCC 2]])
* [[MozCC]] (see [[What's New in MozCC 2]])
* [[RdfaDict]] is a Python RDFa parser
* [[RdfaDict]] is a Python RDFa parser

Revision as of 19:03, 15 November 2008

RDFa allows building metadata into XHTML and other XML documents with attributes. See also RelLicense.



Content discovery

A key use case for RDFa is the annotation of resources included or embedded in web pages. Existing annotations apply to the current document. For example, http://example.com/foo contains

<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">cc</a>

This says that http://example.com/foo is licensed under CC BY 3.0. What about http://example.com/bar.jpg which is displayed in http://example.com/foo via a <img src="/bar.jpg"> element?

To specify that bar.jpg is licensed, even under a different license, we can qualify the link with an about attribute:

<a about="/bar.jpg" rel="license" href="http://creativecommons.org/licenses/by-nc/3.0/">cc</a>

Found in http://example.com/foo this says http://example.com/bar.jpg is licensed under CC BY-NC 3.0.

See Qualifying Other Documents and Document Chunks in the RDFa primer for more examples.

The RDFa highlighter bookmarklet provides visual cues for statements about included resources.

CC Tools

RDFa is used or supported in the following CC tools: