[ckan-dev] RDF: Need to provide read.rdf in template extension when overriding read.html

Stefan Oderbolz stefan.oderbolz at liip.ch
Mon Feb 3 16:14:29 UTC 2014


Hi there,

I just found out, that if you install an extension that provides a new
template for "package/read.html", you *must* provide the standard
"package/read.rdf" along in the same directory, in order to keep the
standard RDF functionality (i.e. just append ".rdf" to the dataset URL, see
http://docs.ckan.org/en/latest/linked-data-and-rdf.html). I'm not sure it
this is by design (i.e. feature) or a bug.

I get the following error if I don't provide that file:

Error - <class 'genshi.template.loader.TemplateNotFound'>: Template
"package/read.rdf" not found

I always assumed, that CKAN uses the standard template if you don't provide
your own. This seems not to be the case for the RDF template.

Maybe this saves someone else some debugging time :)

Best Regards Stefan


PS: I'm using CKAN 2.0.3, so maybe this has already been fixed in later
versions.


-- 
Liip AG  //  Feldstrasse 133 //  CH-8004 Zurich
Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140203/cd1981eb/attachment-0002.html>


More information about the ckan-dev mailing list