<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1173: Offer a DCat representation for packages in the API</title>
    <link>http://localhost/ticket/1173</link>
    <description>&lt;p&gt;
/api/rest/package/foo.rdf should return a DCat representation of the package. To create it, we will use the functions in ckanext-rdf.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1173</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>pudo</dc:creator>

      <pubDate>Thu, 02 Jun 2011 07:37:29 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1173#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1173#comment:1</guid>
      <description>
        &lt;p&gt;
I propose we do a bit of frameworkiness here: set up a two-part content type registry and refactor the API controller to use it.
&lt;/p&gt;
&lt;p&gt;
The idea would be to do the following things:
&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Create a registry mapping format extensions to mime types: &lt;a class="missing wiki"&gt;RepresentationRegistry?&lt;/a&gt;.add_format('json', 'application/json')
&lt;/li&gt;&lt;li&gt;Create a registry of (mime types, entity types) -&amp;gt; converter functions that yield an appropriate representation of the entity.
&lt;/li&gt;&lt;li&gt;Hook this into the _finish method of the API controller based on Accept: handling
&lt;/li&gt;&lt;li&gt;Add support for /api/rest/ENTITY/NAME.{format} and /ENTITY/NAME.{format} to routing, use registry from (1) to rewrite accept headers.
&lt;/li&gt;&lt;li&gt;Register converters in load_environment or via IConfigurable plugins
&lt;/li&gt;&lt;li&gt;Document
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
What do you think?
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>amercader</dc:creator>

      <pubDate>Thu, 02 Jun 2011 09:26:45 GMT</pubDate>
      <title>cc set</title>
      <link>http://localhost/ticket/1173#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1173#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;adria.mercader@…&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>pudo</dc:creator>

      <pubDate>Thu, 09 Jun 2011 10:27:51 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1173#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1173#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Now available in ckanext-rdf and linked to from WUI.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>