/templates/default_rdf.tmpl
Type: /type/template
body: value: $def with (page)
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:ol='http://openlibrary.org$page.type.key'
>
$def display(key, value):
    $if isinstance(value, list):
        $for v in value: $:display(key, v)
    $elif hasattr(value, 'key'):
            <ol:$key>http://openlibrary.org${value.key}.rdf</ol:$key>
    $else:
            <ol:$key>$value</ol:$key>

$for key in page.keys(): 
    $:display(key, page[key])
</rdf:RDF>
title: Default RDF template