Bug 97225 - WISH: support for multi-namespace feeds such as CMLRSS
Summary: WISH: support for multi-namespace feeds such as CMLRSS
Status: REPORTED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 1.0-beta8
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 10:59 UTC by Egon Willighagen
Modified: 2021-03-09 04:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egon Willighagen 2005-01-17 10:59:23 UTC
Version:           1.0-beta8 (using KDE 3.3.1,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-4)
OS:                Linux (x86_64) release 2.6.10-9-amd64-k8-smp

There is a number of RSS feeds [1] that have extra content
in news items, e.g. as in:

<item rdf:about="http://wwmm.ch.cam.ac.uk/Bob/cod/demo/exampleSubmission/3D/NSC1.xml"> 
    <dc:format>text/html</dc:format> 
    <dc:date>2004-02-24</dc:date> 
    <dc:source>NCI - National Cancer Institute</dc:source> 
    <dc:creator>Yong Zhang</dc:creator> 
    <title>NSC1</title> 
    <link></link> 
    <description>NSC1 fron NCI</description> 
    <cml:molecule title="NSC1"> 
        <cml:atomArray> 
            <cml:atom id="a1" elementType="O" x3="0.0021" y3="-0.0041" z3="0.0020"/> 
            <cml:atom id="a2" elementType="O" x3="-0.0691" y3="5.2414" z3="0.0323"/> 
        </cml:atomArray> 
        <cml:bondArray> 
            <cml:bond atomRefs2="a1 a3" id="b1" order="2"/> 
            <cml:bond atomRefs2="a2 a8" id="b2" order="2"/> 
        </cml:bondArray> 
    </cml:molecule> 
</item>

This examples shows CMLRSS [2] which extends regular RSS feeds with molecular content.

Akregator can display such feed, e.g. [3], without problem, but it would be nice that such extra content, with any namespace, would be shown as sort of attachments, to allow that content to be opened by other programs, i.e. with Open With...

Now, one problem is that XML namespaces need to be mapped to MIME types, so that Open View... can use regular KDE stuff...

The namespace used for the molecular content in CMLRSS feeds, is "http://www.xml-cml.org/schema/cml2/core", i.e. CML2 [4], and that maps to the mime type "chemical/x-cml" [5].

The scheme of:
 1. noting extra elements in the RSS item element
 2. resolving it's namespace into mime type
 3. display extra content as attachment
 4 [details]. allow "Open With" for attachment
is a general mechanism and not limited to chemistry what
so ever...

Of course, such attachments should *not* be opened automatically, because of security hazards.

Egon

1. http://wwmm.ch.cam.ac.uk/moin/CmlRssFeeds
2. http://wwmm.ch.cam.ac.uk/moin/CmlRss
3. http://www.bristol.ac.uk/Depts/Chemistry/MOTM/rss.xml
4. http://wwmm.ch.cam.ac.uk/moin/ChemicalMarkupLanguage
5. http://www.ch.ic.ac.uk/chemime/
Comment 1 Justin Zobel 2021-03-09 04:10:52 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.