Difference between revisions of "Web Statement"
(→Tools) |
|||
Line 1: | Line 1: | ||
[[Category:Developer]] | [[Category:Developer]] | ||
− | [[Category: | + | [[Category:Technology]] |
− | [[Category: | + | [[Category:Metadata]] |
= Using Creative Commons Metadata in Non-Web Content = | = Using Creative Commons Metadata in Non-Web Content = | ||
Line 20: | Line 20: | ||
The URL for the page that includes license metadata for a file is known as a '''WebStatement''' URL after the name used in [[XMP]]. | The URL for the page that includes license metadata for a file is known as a '''WebStatement''' URL after the name used in [[XMP]]. | ||
− | The page at the WebStatement URL should also identify the licensed media file with a content-derived identifier (e.g., SHA1 hash, see example below) so that a program can verify that the page is making a license assertion about the media file at hand. | + | The page at the WebStatement URL should also identify the licensed media file with a content-derived identifier (e.g., SHA1 hash, see example below) or other independently verifiable identifier so that a program can verify that the page is making a license assertion about the media file at hand. |
This has additional benefits besides preventing the propagation of incorrect license metadata: the metadata can now be linked to and indexed by search engines. Imagine searching the Web for music under a Creative Commons license, and then downloading it from a peer-to-peer network. | This has additional benefits besides preventing the propagation of incorrect license metadata: the metadata can now be linked to and indexed by search engines. Imagine searching the Web for music under a Creative Commons license, and then downloading it from a peer-to-peer network. | ||
Line 32: | Line 32: | ||
== Implementation == | == Implementation == | ||
− | + | ===Embedding a link to the license info page=== | |
+ | |||
+ | We have guides on how to do this in different file formats: | ||
* [[MP3]] | * [[MP3]] | ||
Line 38: | Line 40: | ||
* [[XMP]] (PDF, JPEG, all others) | * [[XMP]] (PDF, JPEG, all others) | ||
− | + | ===Building the license info page=== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | The license info page must have or HTTP redirect to a page that has a license notice for the file in question. (Readers should be ready to follow several HTTP redirects.) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Example HTML fragment with [[RDFa]]: | |
− | |||
− | |||
− | |||
− | + | <nowiki><span about="urn:sha1:MSMBC5VEUDLTC26UT5W7GZBAKZHCY2MD"> | |
− | </ | + | Example_Song.mp3 is licensed under |
+ | <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a> | ||
+ | </span></nowki> | ||
− | + | This fragment includes the statement | |
− | + | <urn:sha1:MSMBC5VEUDLTC26UT5W7GZBAKZHCY2MD> :license <http://creativecommons.org/licenses/by/3.0/> . | |
− | + | which may be read as "File with the SHA1 hash (base32 encoded) of MSMB... is licensed under CC BY 3.0." | |
== Tools == | == Tools == |
Revision as of 04:49, 3 March 2007
Contents
Using Creative Commons Metadata in Non-Web Content
This is a developer-oriented document. Read our non-technical account with explanatory comics first.
License metadata for web pages is published with the content it describes. If someone publishes false metadata, it can be taken down or corrected.
But with non-web content (such as files on peer-to-peer networks), incorrect metadata can propagate around the network, since it's extremely difficult to get everyone to correct it.
Our solution is to embed a link to a license info page that includes the license metadata, rather than including it directly in the file. For example:
mysong.mp3
links to http://example.com/licenseinfo
(using ID3 tags)
http://example.com/licenseinfo
says the work is available under http://creativecommons.org/licenses/by/2.0/
(using HTML and RDF)
The URL for the page that includes license metadata for a file is known as a WebStatement URL after the name used in XMP.
The page at the WebStatement URL should also identify the licensed media file with a content-derived identifier (e.g., SHA1 hash, see example below) or other independently verifiable identifier so that a program can verify that the page is making a license assertion about the media file at hand.
This has additional benefits besides preventing the propagation of incorrect license metadata: the metadata can now be linked to and indexed by search engines. Imagine searching the Web for music under a Creative Commons license, and then downloading it from a peer-to-peer network.
Third parties can also build authentication services that provide additional assurance that the data is valid.
Security Considerations
Software will automatically download the license info page. Security impact: Anyone who can get you to download their file, just like anyone who can get you to visit their web page, can get you to visit another page and discover your IP address.
Implementation
Embedding a link to the license info page
We have guides on how to do this in different file formats:
Building the license info page
The license info page must have or HTTP redirect to a page that has a license notice for the file in question. (Readers should be ready to follow several HTTP redirects.)
Example HTML fragment with RDFa:
<nowiki>
Example_Song.mp3 is licensed under
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>
</nowki>
This fragment includes the statement
<urn:sha1:MSMBC5VEUDLTC26UT5W7GZBAKZHCY2MD> :license <http://creativecommons.org/licenses/by/3.0/> .
which may be read as "File with the SHA1 hash (base32 encoded) of MSMB... is licensed under CC BY 3.0."
Tools
ccPublisher and ccLookup offer GUI tools for MP3 license claim embedding and verification metadata generation. Available for Linux, OS X, and Windows.
See XMP for tools and code for embedding XMP in PDF and JPEG formats.