Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues parsing RSS from academic publishers #9

Open
retrography opened this issue Nov 23, 2019 · 2 comments
Open

Issues parsing RSS from academic publishers #9

retrography opened this issue Nov 23, 2019 · 2 comments

Comments

@retrography
Copy link

retrography commented Nov 23, 2019

Most academic publishers seem to use a standard software to generate RSS (e.g.: SAGE, Academy of Management). When trying to parse these feeds I get the following error:

RSS::MissingAttributeError: attribute <rdf:about> is missing in tag <channel>
from /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/rss/parser.rb:521:in `block in collect_attributes'

Disabling validation, though, works. I doubt that all these feeds are corrupt. Or is there a specific spec they follow that the current gem does not support?

Also, almost all academic publishers use PRISM as well as the default DublinCore to include metadata in RSS entries. Is it possible to implement that into the current gem? Or better than that, is there a way to allow the gem to read those nodes as generic nodes (that it won't try to validate), just like feedparser in Python?

It looks like the code for DublinCore model can be used as a template for that. But PRISM also includes Reference nodes on top of Text and Date. Is there another NS implementation I can use as template for those nodes?

@kou
Copy link
Member

kou commented Nov 25, 2019

rdf:about is required for <channel>:

http://web.resource.org/rss/1.0/spec#s5.3

Required Attribute(s): rdf:about

So these RSS feeds are invalid.

@kou
Copy link
Member

kou commented Nov 25, 2019

Is it possible to implement that into the current gem?

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants