/atom_feed

Parse and query Atom Syndication Format in Prolog

Primary LanguagePrologThe UnlicenseUnlicense

Synopsis

:- use_module(library(atom_feed)).
?- new_feed(file('xkcd.xml'), Feed),
   entry(Feed, Entry),
   link(Entry, Link),
   rel(Link, alternate),
   href(Link, Url).
Url = 'http://xkcd.com/1286/' ;
Url = 'http://xkcd.com/1285/' ;
Url = 'http://xkcd.com/1284/' ;
...

Description

Parse and query Atom Syndication Feeds and RSS feeds. This pack doesn't support every aspect of the Atom or RSS specs, but it does support many widely used aspects. It's intended as a relatively low level library on which more complex feed processing can be implemented.

Changes in this Version

  • Predicate for entry publication time
  • Predicate for entry update time

Installation

Using SWI-Prolog 6.3 or later:

?- pack_install(atom_feed).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/mndrix/atom_feed