Difference between revisions of "Autocurated Packages"

From Creative Commons
Jump to: navigation, search
(Makefile)
(Recommendations for other web services: Bold, don't yell)
 
(6 intermediate revisions by 3 users not shown)
Line 6: Line 6:
 
While there are many sites on the web, having the ability to package content on the fly is akin to packaging of an album, producing a checkout item, and is vitally important for platforms like the [[OLPC]] and [[OpenMoko]] who rely upon package management for their limited storage space.
 
While there are many sites on the web, having the ability to package content on the fly is akin to packaging of an album, producing a checkout item, and is vitally important for platforms like the [[OLPC]] and [[OpenMoko]] who rely upon package management for their limited storage space.
  
=== Brain Dump ===
+
== Examples ==
  
In a folder like 'jamendo' have the following files:
+
* [[Flickr Autocuration]]
  
=== Makefile ===
+
== Recommendations for other web services ==
  
This Makefile should have simple variables in the header of the file so that it is easy to target a different media hosting site and generate a new package
+
* Make it easy to get a list of CC-licensed content that you recommend!
 +
** Note that "most recent uploads" is not the same as what you'd recommend.  Recommendable work probably has a lot of viewers or has been hand-selected.
 +
** '''Implementation suggestion''': Make an Atom/RSS feed that links to "interesting"/recommendable content rather than just the most recent content.
 +
* Make sure it's easy for us to detect which license different works are under.
 +
** '''Implementation suggestion''': Use the tech specs at [[Syndication]] for Atom and RSS.
 +
* Don't generate broken XML or feeds.  I'm happy to help you diagnose issues related to XML or feed correctness.
 +
** '''Implementation suggestion''':Test against an XML validator
 +
* Make it easy for us to find the raw content, not just a web page about it.
 +
** '''Implementation suggestion''':If your RSS file contains links to HTML pages but you would rather we download a ZIP or MP3 or other file instead, use "Enclosures."
  
Features should include:
+
Make sure we can get, for any work you want us to put on the disc:
 +
* The title of the work
 +
* A permanent link to information about the work (like an album page on the web)
 +
* The author's name and other attribution information
 +
* The CC license the work is under
 +
* The work itself in an appropriate form for a CD/DVD
  
* variable NUM_OF_FILES=10
+
=== Above and beyond ===
* variable LICENSE=BY
 
* variable URL, like URL=http://jamendo.com/get?toptracks&num=${NUM_OF_FILES}&license=${LICENSE}
 
  
Steps to build the package:
+
If you'd like, you can write the autocurate module for your web service. It should be easy to write if you know Python - a readable demo is in autocurate_flickr.py. That would make it extremely easy for us to integrate your site into the next LiveContent release.
 
 
* use curl to get content from the URL into a folder, called 'content'
 
* make packages from this content folder like the following
 
** jamendo_`date +%F`.tar.gz
 
** jamendo_`date +%F`.tar.bz2
 
** jamendo_`date +%F`.zip
 
** jamendo_`date +%F`.xo1 (zip for olpc)
 
* call .spec file to make rpms
 
** jamendo_`date +%F`.rpm
 
* create .deb with alien or the like, or directly
 
** jamendo_`date +%F`.deb
 
 
 
=== .spec file ===
 
 
 
The spec file should simply use the generated tarball and Makefile to make an RPM. After this is done, then it will be easy to put these package builds, which will change possibly upon each run of the script, into a build system and for by use of RPM-based distributions.
 
 
 
 
 
=== Other Packaging System ===
 
 
 
Also, there could easily be wrapper scripts for generating .deb packages necessary for debian-based distributions like Ubuntu. One can use the program 'Alien' to convert from an RPM to a .deb package.
 
 
 
Also, gentoo ebuilds would be another interesting target.
 

Latest revision as of 07:30, 5 March 2008


The idea of auto-curated packages is that high-quality content can be pulled from media hosting sites that support a RESTful API for getting CC licensed content. The community from these sites has peer reviewed content so that it makes it easy to automatically pull down a top ten best tracks, or something similar, and then timestamp them, and package them for inclusion onto various devices.

While there are many sites on the web, having the ability to package content on the fly is akin to packaging of an album, producing a checkout item, and is vitally important for platforms like the OLPC and OpenMoko who rely upon package management for their limited storage space.

Examples

Recommendations for other web services

  • Make it easy to get a list of CC-licensed content that you recommend!
    • Note that "most recent uploads" is not the same as what you'd recommend. Recommendable work probably has a lot of viewers or has been hand-selected.
    • Implementation suggestion: Make an Atom/RSS feed that links to "interesting"/recommendable content rather than just the most recent content.
  • Make sure it's easy for us to detect which license different works are under.
    • Implementation suggestion: Use the tech specs at Syndication for Atom and RSS.
  • Don't generate broken XML or feeds. I'm happy to help you diagnose issues related to XML or feed correctness.
    • Implementation suggestion:Test against an XML validator
  • Make it easy for us to find the raw content, not just a web page about it.
    • Implementation suggestion:If your RSS file contains links to HTML pages but you would rather we download a ZIP or MP3 or other file instead, use "Enclosures."

Make sure we can get, for any work you want us to put on the disc:

  • The title of the work
  • A permanent link to information about the work (like an album page on the web)
  • The author's name and other attribution information
  • The CC license the work is under
  • The work itself in an appropriate form for a CD/DVD

Above and beyond

If you'd like, you can write the autocurate module for your web service. It should be easy to write if you know Python - a readable demo is in autocurate_flickr.py. That would make it extremely easy for us to integrate your site into the next LiveContent release.